From af833cb212f90f58bd562962108a5edc9913d4e6 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Fri, 26 Dec 2025 10:23:39 -0600 Subject: [PATCH] cleanup debug.log --- internal/processor/debug-log.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/processor/debug-log.go b/internal/processor/debug-log.go index aa03f40..f4da0ee 100644 --- a/internal/processor/debug-log.go +++ b/internal/processor/debug-log.go @@ -14,7 +14,7 @@ type DebugLog struct { } func (dl *DebugLog) Process(ctx context.Context, payload any) (any, error) { - dl.logger.Debug("debug.log", "payload", payload, "payloadType", fmt.Sprintf("%T", payload)) + dl.logger.Debug("", "payload", payload, "payloadType", fmt.Sprintf("%T", payload)) return payload, nil } @@ -26,7 +26,7 @@ func init() { RegisterProcessor(ProcessorRegistration{ Type: "debug.log", New: func(config config.ProcessorConfig) (Processor, error) { - return &DebugLog{config: config, logger: slog.Default().With("component", "processor")}, nil + return &DebugLog{config: config, logger: slog.Default().With("component", "processor", "type", config.Type)}, nil }, }) }