Skip to content

Commit 4113707

Browse files
committed
commands: Set up the glboal logger early
Fixes #13265
1 parent 5bb1564 commit 4113707

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎commands/commandeer.go

+2
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,8 @@ func (r *rootCommand) PreRun(cd, runner *simplecobra.Commandeer) error {
447447
if err != nil {
448448
return err
449449
}
450+
// Set up the glboal logger early to allow info deprecations during config load.
451+
loggers.InitGlobalLogger(r.logger.Level(), false)
450452

451453
r.changesFromBuild = make(chan []identity.Identity, 10)
452454

0 commit comments

Comments
 (0)