fix(cmd/joj3): add runID to debug log
Some checks failed
build / trigger-build-image (push) Blocked by required conditions
submodules sync / sync (push) Has been cancelled
build / build (push) Has been cancelled

This commit is contained in:
张泊明518370910136 2024-11-02 01:02:07 -04:00
parent d151540f1f
commit cd15f1175c
GPG Key ID: D47306D7062CDA9D
2 changed files with 4 additions and 4 deletions

View File

@ -68,10 +68,10 @@ func setupSlog(logPath string) error {
if err != nil {
return err
}
debugHandler := slog.NewTextHandler(debugFile, &slog.HandlerOptions{
debugFileHandler := slog.NewTextHandler(debugFile, &slog.HandlerOptions{
Level: slog.LevelDebug,
})
handlers = append(handlers, debugHandler)
}).WithAttrs([]slog.Attr{slog.String("runID", runID)})
handlers = append(handlers, debugFileHandler)
}
stderrLogLevel := slog.LevelInfo
if runningTest {

@ -1 +1 @@
Subproject commit cb75bcd052a3a42c0660261d623177439cc7592a
Subproject commit 73c0dd43066bb53a299dfba3d92e880ae34bdd68