joao-r-reis commented on code in PR #1920:
URL: 
https://github.com/apache/cassandra-gocql-driver/pull/1920#discussion_r2632296236


##########
logger.go:
##########
@@ -162,7 +162,8 @@ func (l *defaultLogger) Debug(msg string, fields 
...LogField) {
 func (l *defaultLogger) write(prefix string, msg string, fields []LogField) {
        buf := bytes.Buffer{}
        writeLogMsg(&buf, prefix, msg, fields)
-       log.Println(buf.String())
+       // During testing it allows seeing where exactly logging methods are 
called instead of this method
+       log.Output(3, buf.String())

Review Comment:
   Yeah I agree that the caller info is very useful and I'd +1 that if it was 
only used in tests



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to