Skip to content

Commit 1988fe4

Browse files
committed
Try and get analyzer to re-analyze by putting sanitizing code closer to the area of concern
1 parent 9c3cfc9 commit 1988fe4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sql/analyzer/analyzer.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,11 @@ func NewDefault(provider sql.DatabaseProvider) *Analyzer {
292292
// if the analyzer is in debug mode.
293293
func (a *Analyzer) Log(msg string, args ...interface{}) {
294294
if a != nil && a.Debug {
295-
sanitizedArgs := sanitizeArguments(args)
296295
if len(a.contextStack) > 0 {
297296
ctx := strings.Join(a.contextStack, "/")
298-
log.Infof("%s: "+msg, append([]interface{}{ctx}, sanitizedArgs...)...)
297+
log.Infof("%s: "+msg, append([]interface{}{ctx}, sanitizeArguments(args)...)...)
299298
} else {
300-
log.Infof(msg, sanitizedArgs...)
299+
log.Infof(msg, sanitizeArguments(args)...)
301300
}
302301
}
303302
}

0 commit comments

Comments
 (0)