Skip to content

Commit

Permalink
coordinator: use custom slog
Browse files Browse the repository at this point in the history
  • Loading branch information
3u13r committed Jan 5, 2024
1 parent c236551 commit df394b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coordinator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ func main() {
}

func run() (retErr error) {
logger := slog.Default()
logger := slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{
Level: slog.LevelInfo,
}))
defer func() {
if retErr != nil {
logger.Error(retErr.Error())
Expand Down

0 comments on commit df394b1

Please sign in to comment.