chore: include decoder in debug log (#1853)

This commit is contained in:
Richard Gomez authored and GitHub committed 2025-05-12 21:54:55 -05:00
1 parent 78eebaca9d
commit f97a9ee872
1 file changed
+4 -1
+4 -1
View File
@@ -2,6 +2,7 @@ package codec
import ( import (
"bytes" "bytes"
"github.com/zricethezav/gitleaks/v8/logging" "github.com/zricethezav/gitleaks/v8/logging"
) )
@@ -89,7 +90,9 @@ func (d *Decoder) findEncodedSegments(data string, predecessors []*EncodedSegmen
} }
segments = append(segments, segment) segments = append(segments, segment)
logging.Debug().Msgf( logging.Debug().
Str("decoder", m.encoding.kind.String()).
Msgf(
"segment found: original=%s pos=%s: %q -> %q", "segment found: original=%s pos=%s: %q -> %q",
segment.original, segment.original,
segment.encoded, segment.encoded,