Skip to content

Commit ebe906f

Browse files
fix: set bootstrap logger to avoid panics when handling config errors
1 parent ced769c commit ebe906f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmd/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func Execute() {
3232
}
3333

3434
func configureRootCmd() error {
35+
logs, _ = logger.NewLogger("INFO", "json")
3536
cobra.OnInitialize(initConfig)
3637

3738
rootCmd.AddCommand(

0 commit comments

Comments
 (0)