Skip to content

Commit

Permalink
Fix default slog initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
kthomas committed Mar 5, 2024
1 parent 5497a98 commit e8932d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nex/nex.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func main() {
if Opts.LogJSON {
logger = slog.New(slog.NewJSONHandler(os.Stdout, &opts))
} else {
logger = slog.Default()
logger = slog.New(slog.NewTextHandler(os.Stdout, &opts))
}

switch cmd {
Expand Down

0 comments on commit e8932d4

Please sign in to comment.