Skip to content

Commit

Permalink
Merge pull request #105 from tupyy/fix-validation-log
Browse files Browse the repository at this point in the history
agent/run: Show log when config validation failed
  • Loading branch information
tupyy authored Dec 13, 2024
2 parents 5bd05a1 + 87a74b1 commit 421028f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/planner-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ type agentCmd struct {
}

func NewAgentCommand() *agentCmd {
logger := log.InitLog(zap.NewAtomicLevelAt(zapcore.InfoLevel))
defer func() { _ = logger.Sync() }()

undo := zap.ReplaceGlobals(logger)
defer undo()

a := &agentCmd{
config: config.NewDefault(),
}
Expand Down

0 comments on commit 421028f

Please sign in to comment.