Skip to content

Commit

Permalink
fix: update slog logger
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
  • Loading branch information
rustatian committed May 11, 2023
1 parent d538e71 commit 53df7c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions endure.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ func New(level slog.Leveler, options ...Options) *Endure {
level = slog.LevelDebug
}

opts := slog.HandlerOptions{
opts := &slog.HandlerOptions{
Level: level,
}.NewJSONHandler(os.Stderr)
}

c := &Endure{
registar: registar.New(),
graph: graph.New(),
mu: sync.RWMutex{},
stopTimeout: time.Second * 30,
log: slog.New(opts),
log: slog.New(slog.NewJSONHandler(os.Stderr, opts)),
}

// Main thread channels
Expand Down

0 comments on commit 53df7c6

Please sign in to comment.