chore(cmd/joj3): use background context

This commit is contained in:
张泊明518370910136 2025-02-01 21:51:50 -05:00
parent 0f40da5efa
commit d6da8c8fa7
GPG Key ID: D47306D7062CDA9D

View File

@ -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
}