Skip to content

Commit 81e6dcf

Browse files
committed
Fix wrong signature to DbMap.TraceOn
1 parent f109508 commit 81e6dcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model/db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func chooseDialect(driver string) gorp.Dialect {
7171
func controlTrace(trace bool, DbMap *gorp.DbMap) {
7272
if trace {
7373
dbTraceWriter := util.ConstructSomeLogWriter(traceLog, os.Stdout)
74-
DbMap.TraceOn("", log.New(dbTraceWriter, "gorptest: ", log.Lmicroseconds))
74+
DbMap.TraceOn("", "", log.New(dbTraceWriter, "gorptest: ", log.Lmicroseconds))
7575
} else {
7676
DbMap.TraceOff()
7777
}

0 commit comments

Comments
 (0)