only set debug if flag is present

This commit is contained in:
Thibault bui Koechlin 2020-06-26 10:09:23 +02:00
parent 853dd773f8
commit d3900ad201

View file

@ -63,8 +63,6 @@ func NewSQLite(cfg map[string]string) (*Context, error) {
c.Db.LogMode(true)
}
c.Db.LogMode(true)
c.flush, _ = strconv.ParseBool(cfg["flush"])
// Migrate the schema
c.Db.AutoMigrate(&types.EventSequence{}, &types.SignalOccurence{}, &types.BanApplication{})