1
0
forked from JOJ/JOJ3

feat(cmd/joj3): default actor name & actor id placeholder

This commit is contained in:
张泊明518370910136 2025-06-30 17:36:48 -04:00
parent 1b6fc08451
commit 439e64be0c
Signed by untrusted user: 张泊明518370910136
GPG Key ID: D47306D7062CDA9D

View File

@ -3,6 +3,7 @@ package main
import (
"context"
"encoding/csv"
"fmt"
"io"
"log/slog"
"os"
@ -55,6 +56,8 @@ func (h *multiHandler) WithGroup(name string) slog.Handler {
}
func newSlogAttrs(csvPath string) (attrs []slog.Attr) {
env.Attr.ActorName = fmt.Sprintf("Name(%s)", env.Attr.Actor)
env.Attr.ActorID = fmt.Sprintf("ID(%s)", env.Attr.Actor)
attrs = []slog.Attr{
slog.String("runID", env.Attr.RunID),
slog.String("confName", env.Attr.ConfName),