Skip to content

Commit

Permalink
fix: log init
Browse files Browse the repository at this point in the history
  • Loading branch information
icey-yu committed Sep 2, 2024
1 parent 8385052 commit ba3333e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/common/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ func (r *RootCmd) applyOptions(opts ...func(*CmdOpts)) *CmdOpts {
}

func (r *RootCmd) initializeLogger(cmdOpts *CmdOpts) error {
err := log.InitFromConfig(
err := log.InitLoggerFromConfig(

cmdOpts.loggerPrefixName,
r.processName,
"", "",
r.log.RemainLogLevel,
r.log.IsStdout,
r.log.IsJson,
Expand Down

0 comments on commit ba3333e

Please sign in to comment.