We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c3cfc9 commit 1988fe4Copy full SHA for 1988fe4
sql/analyzer/analyzer.go
@@ -292,12 +292,11 @@ func NewDefault(provider sql.DatabaseProvider) *Analyzer {
292
// if the analyzer is in debug mode.
293
func (a *Analyzer) Log(msg string, args ...interface{}) {
294
if a != nil && a.Debug {
295
- sanitizedArgs := sanitizeArguments(args)
296
if len(a.contextStack) > 0 {
297
ctx := strings.Join(a.contextStack, "/")
298
- log.Infof("%s: "+msg, append([]interface{}{ctx}, sanitizedArgs...)...)
+ log.Infof("%s: "+msg, append([]interface{}{ctx}, sanitizeArguments(args)...)...)
299
} else {
300
- log.Infof(msg, sanitizedArgs...)
+ log.Infof(msg, sanitizeArguments(args)...)
301
}
302
303
0 commit comments