fix: remove multi-line graphql query in log

This commit is contained in:
Vikram Rangnekar 2020-04-19 02:50:09 -04:00
parent e6934cda02
commit a6691de1b7
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func apiV1(w http.ResponseWriter, r *http.Request) {
res, err := sg.GraphQL(ct, req.Query, req.Vars) res, err := sg.GraphQL(ct, req.Query, req.Vars)
if logLevel >= LogLevelDebug { if logLevel >= LogLevelDebug {
log.Printf("DBG query:\n%s\nsql:\n%s", req.Query, res.SQL()) log.Printf("DBG query %s: %s", res.QueryName(), res.SQL())
} }
if err != nil { if err != nil {