fix(cmd/joj3): add runID to debug log
This commit is contained in:
parent
d151540f1f
commit
cd15f1175c
|
@ -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
|
Loading…
Reference in New Issue
Block a user