Improve SQL debug logging

This commit is contained in:
Tobie Morgan Hitchcock 2017-02-28 00:19:21 +00:00
parent b68c33835e
commit e3634fb4a8

View file

@ -241,7 +241,9 @@ func (e *executor) execute(quit <-chan bool, send chan<- *Response) {
// speed, so we can analyse slow queries. // speed, so we can analyse slow queries.
log.WithPrefix("sql").WithFields(map[string]interface{}{ log.WithPrefix("sql").WithFields(map[string]interface{}{
"ctx": e.web, "id": e.web.Get("id"),
"kind": e.web.Get("auth").(*cnf.Auth).Kind,
"auth": e.web.Get("auth").(*cnf.Auth).Data,
}).Debugln(stm) }).Debugln(stm)
// Check to see if the current statement is // Check to see if the current statement is