Skip to content

Commit

Permalink
hotfix for nil log
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Feb 10, 2025
1 parent a9bc03f commit 4bd5a19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kindling.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@ type Option func(*kindling)
func NewKindling(options ...Option) Kindling {
k := &kindling{}
k.logWriter = os.Stdout
log = slog.New(slog.NewTextHandler(k.logWriter, &slog.HandlerOptions{}))

// Apply all the functional options to configure the client.
for _, opt := range options {
opt(k)
}

log = slog.New(slog.NewTextHandler(k.logWriter, &slog.HandlerOptions{}))
return k
}

Expand Down

0 comments on commit 4bd5a19

Please sign in to comment.