diff --git a/cmd/joj3/log.go b/cmd/joj3/log.go index 7f6c59f..c15a04e 100644 --- a/cmd/joj3/log.go +++ b/cmd/joj3/log.go @@ -147,6 +147,11 @@ func setupSlog(conf *conf.Conf) error { if logPath != "" { slog.Info("debug log", "path", logPath) } - slog.LogAttrs(context.TODO(), slog.LevelInfo, "setup slog attrs", attrs...) + slog.LogAttrs( + context.Background(), + slog.LevelInfo, + "setup slog attrs", + attrs..., + ) return nil }