summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go
index 0bcb3674da..1e64f70f4f 100644
--- a/models/models.go
+++ b/models/models.go
@@ -241,6 +241,7 @@ func NewTestEngine(x *xorm.Engine) (err error) {
x.SetMapper(core.GonicMapper{})
x.SetLogger(log.XORMLogger)
+ x.ShowSQL(!setting.ProdMode)
return x.StoreEngine("InnoDB").Sync2(tables...)
}