~mariusor/fedbox

c2db2c3b7529e62ffa6c1550c34110fc6ce01d01 — Marius Orcsik 6 months ago e3f5425
Try to imprve log output for cli
1 files changed, 1 insertions(+), 1 deletions(-)

M internal/cmd/control.go
M internal/cmd/control.go => internal/cmd/control.go +1 -1
@@ 44,7 44,7 @@ func Before(c *cli.Context) error {
		fields["cli"] = c.Command.FullName()
	}

	logger := lw.Dev(lw.SetOutput(os.Stderr))
	logger := lw.Prod(lw.SetLevel(lw.InfoLevel), lw.SetOutput(os.Stderr))
	ct, err := setup(c, logger.WithContext(fields))
	if err != nil {
		// Ensure we don't print the default help message, which is not useful here