Skip to content

Commit

Permalink
Change queries log-level from DEBUG to TRACE
Browse files Browse the repository at this point in the history
  • Loading branch information
sheb-gregor committed Jan 15, 2020
1 parent e983b14 commit a6d82e8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions db/sql_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,11 @@ func (conn *SQLConn) log(typ string, start time.Time, query string, args []inter
}

dur := time.Since(start)
lEntry := conn.logger.
conn.logger.
WithFields(logrus.Fields{
"args": fmt.Sprintf("%v", args),
"sql": query,
"dur": dur.String(),
})

lEntry.Debugf("sql: %s", typ)
"args": fmt.Sprintf("%+v", args),
}).
Tracef("sql: %s", typ)
}

0 comments on commit a6d82e8

Please sign in to comment.