Browse Source

only set debug if flag is present

Thibault bui Koechlin 5 years ago
parent
commit
d3900ad201
1 changed files with 0 additions and 2 deletions
  1. 0 2
      pkg/sqlite/sqlite.go

+ 0 - 2
pkg/sqlite/sqlite.go

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