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 9, 2024
1 parent 2116f59 commit c0d4c04
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 @@ -19,7 +19,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 c0d4c04

Please sign in to comment.