Skip to content

Commit

Permalink
use slog.default
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulSonOfLars committed Dec 21, 2024
1 parent 1bf5589 commit fb74096
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ext/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"log/slog"
"os"
"runtime/debug"
"strings"
"sync"
Expand Down Expand Up @@ -128,7 +127,7 @@ func NewDispatcher(opts *DispatcherOpts) *Dispatcher {
var errHandler DispatcherErrorHandler
var panicHandler DispatcherPanicHandler
var unhandledErrFunc ErrorFunc
logger := slog.New(slog.NewTextHandler(os.Stderr, nil))
logger := slog.Default()

maxRoutines := DefaultMaxRoutines
processor := Processor(BaseProcessor{})
Expand Down
3 changes: 1 addition & 2 deletions ext/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"log/slog"
"net"
"net/http"
"os"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -62,7 +61,7 @@ type UpdaterOpts struct {
// NewUpdater Creates a new Updater, as well as a Dispatcher and any optional updater configurations (via UpdaterOpts).
func NewUpdater(dispatcher UpdateDispatcher, opts *UpdaterOpts) *Updater {
var unhandledErrFunc ErrorFunc
logger := slog.New(slog.NewTextHandler(os.Stderr, nil))
logger := slog.Default()

if opts != nil {
unhandledErrFunc = opts.UnhandledErrFunc
Expand Down

0 comments on commit fb74096

Please sign in to comment.