Improve SQL debug logging
This commit is contained in:
parent
b68c33835e
commit
e3634fb4a8
1 changed files with 3 additions and 1 deletions
4
db/db.go
4
db/db.go
|
@ -241,7 +241,9 @@ func (e *executor) execute(quit <-chan bool, send chan<- *Response) {
|
|||
// speed, so we can analyse slow queries.
|
||||
|
||||
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)
|
||||
|
||||
// Check to see if the current statement is
|
||||
|
|
Loading…
Reference in a new issue