Skip to content

Commit

Permalink
dont set slogger where not used, change rungroup leveling
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett committed Feb 7, 2024
1 parent ba4031b commit c09978f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions ee/desktop/user/notify/notify_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ import (
)

type macNotifier struct {
slogger *slog.Logger
interrupt chan struct{}
}

func NewDesktopNotifier(slogger *slog.Logger, _ string) *macNotifier {
func NewDesktopNotifier(_ *slog.Logger, _ string) *macNotifier {
return &macNotifier{
slogger: slogger.With("component", "desktop_notifier"),
interrupt: make(chan struct{}),
}
}
Expand Down
4 changes: 1 addition & 3 deletions ee/desktop/user/notify/notify_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ import (

type windowsNotifier struct {
iconFilepath string
slogger *slog.Logger
interrupt chan struct{}
}

func NewDesktopNotifier(slogger *slog.Logger, iconFilepath string) *windowsNotifier {
func NewDesktopNotifier(_ *slog.Logger, iconFilepath string) *windowsNotifier {
return &windowsNotifier{
iconFilepath: iconFilepath,
slogger: slogger.With("component", "desktop_notifier"),
interrupt: make(chan struct{}),
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/rungroup/rungroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (g *Group) Run() error {
// Wait for the first actor to stop.
initialActorErr := <-errors

g.slogger.Log(context.TODO(), slog.LevelDebug,
g.slogger.Log(context.TODO(), slog.LevelInfo,
"received interrupt error from first actor -- shutting down other actors",
"err", initialActorErr,
)
Expand Down

0 comments on commit c09978f

Please sign in to comment.