diff options
Diffstat (limited to 'vendor/github.com/denisenkom/go-mssqldb/token.go')
-rw-r--r-- | vendor/github.com/denisenkom/go-mssqldb/token.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vendor/github.com/denisenkom/go-mssqldb/token.go b/vendor/github.com/denisenkom/go-mssqldb/token.go index 25385e89dc..6aa99aa974 100644 --- a/vendor/github.com/denisenkom/go-mssqldb/token.go +++ b/vendor/github.com/denisenkom/go-mssqldb/token.go @@ -704,14 +704,18 @@ func (ts *parseResp) sendAttention(ch chan tokenStruct) parseRespIter { } func (ts *parseResp) dlog(msg string) { - if ts.sess.logFlags&logDebug != 0 { + // logging from goroutine is disabled to prevent + // data race detection from firing + // The race is probably happening when + // test logger changes between tests. + /*if ts.sess.logFlags&logDebug != 0 { ts.sess.log.Println(msg) - } + }*/ } func (ts *parseResp) dlogf(f string, v ...interface{}) { - if ts.sess.logFlags&logDebug != 0 { + /*if ts.sess.logFlags&logDebug != 0 { ts.sess.log.Printf(f, v...) - } + }*/ } func (ts *parseResp) iter(ctx context.Context, ch chan tokenStruct, tokChan chan tokenStruct) parseRespIter { |