From d6da8c8fa77754a703836295b5ea06974b0c9ba3 Mon Sep 17 00:00:00 2001
From: Boming Zhang <bomingzh@sjtu.edu.cn>
Date: Sat, 1 Feb 2025 21:51:50 -0500
Subject: [PATCH] chore(cmd/joj3): use background context

---
 cmd/joj3/log.go | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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
 }