Skip to content

Commit f800074

Browse files
committed
Add logrus init to InitLog comment
Signed-off-by: Carlos Martín <carlos.martin.sanchez@gmail.com>
1 parent 0c2b3ea commit f800074

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

util/cli/log.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import (
88
)
99

1010
// InitLog is similar to go-cli LogOptions.Init, but adds the application name
11-
// field to the default logger
11+
// field to the default logger. It also configures the standard logrus Logger
12+
// with the same default values
1213
func InitLog(c *gocli.LogOptions, name string) {
1314
if c.LogFields == "" {
1415
bytes, err := json.Marshal(log.Fields{"app": name})

0 commit comments

Comments
 (0)