Skip to content

Commit cb7a503

Browse files
committed
chore: add command name to log records
1 parent e448039 commit cb7a503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func Run() StatusCode {
119119
}
120120

121121
command.BindTo(ctx, (*context.Context)(nil))
122-
command.Bind(logger)
122+
command.Bind(logger.With("logger", command.Selected().Name))
123123

124124
err := command.Run()
125125
if err != nil {

0 commit comments

Comments
 (0)