Skip to content

Commit

Permalink
Fix wrong signature to DbMap.TraceOn
Browse files Browse the repository at this point in the history
  • Loading branch information
lumbric committed Aug 20, 2017
1 parent f109508 commit 81e6dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func chooseDialect(driver string) gorp.Dialect {
func controlTrace(trace bool, DbMap *gorp.DbMap) {
if trace {
dbTraceWriter := util.ConstructSomeLogWriter(traceLog, os.Stdout)
DbMap.TraceOn("", log.New(dbTraceWriter, "gorptest: ", log.Lmicroseconds))
DbMap.TraceOn("", "", log.New(dbTraceWriter, "gorptest: ", log.Lmicroseconds))
} else {
DbMap.TraceOff()
}
Expand Down

0 comments on commit 81e6dcf

Please sign in to comment.