Merge pull request #52 from jwetzell/fix/debug-log-payload-string

more compatible printing of payload in debug.log
This commit is contained in:
Joel Wetzell
2026-02-03 22:52:20 -06:00
committed by GitHub

View File

@@ -14,7 +14,9 @@ type DebugLog struct {
} }
func (dl *DebugLog) Process(ctx context.Context, payload any) (any, error) { func (dl *DebugLog) Process(ctx context.Context, payload any) (any, error) {
dl.logger.Debug("", "payload", payload, "payloadType", fmt.Sprintf("%T", payload)) payloadString := fmt.Sprintf("%+v", payload)
payloadType := fmt.Sprintf("%T", payload)
dl.logger.Debug("", "payload", payloadString, "payloadType", payloadType)
return payload, nil return payload, nil
} }