feat: adapt new logging to workflow node processors

This commit is contained in:
Fu Diwei
2025-03-17 22:50:25 +08:00
parent b620052b88
commit af5d7465a1
22 changed files with 714 additions and 274 deletions

View File

@@ -24,10 +24,14 @@ type HookHandler struct {
attrs []slog.Attr
}
func NewHookHandler(options HookHandlerOptions) *HookHandler {
func NewHookHandler(opts *HookHandlerOptions) *HookHandler {
if opts == nil {
opts = &HookHandlerOptions{}
}
h := &HookHandler{
mutex: &sync.Mutex{},
options: &options,
options: opts,
}
if h.options.WriteFunc == nil {