Sebastien Blot 3 years ago
parent
commit
7a00123ed0
2 changed files with 2 additions and 1 deletions
  1. 1 1
      pkg/database/database.go
  2. 1 0
      tests/lib/config/config-local

+ 1 - 1
pkg/database/database.go

@@ -77,7 +77,7 @@ func NewClient(config *csconfig.DatabaseCfg) (*Client, error) {
 			}
 		}
 		if config.UseWal == nil {
-			clog.Warn("you are using sqlite without WAL, this can have an impact of performance. If you do store the database in a network share, set db_config.use_wal to true. Set to false to disable this warning")
+			entLogger.Warn("you are using sqlite without WAL, this can have an impact of performance. If you do not store the database in a network share, set db_config.use_wal to true. Set to false to disable this warning")
 		}
 		var sqliteConnectionStringParameters string
 		if config.UseWal != nil && *config.UseWal {

+ 1 - 0
tests/lib/config/config-local

@@ -81,6 +81,7 @@ config_generate() {
     .config_paths.plugin_dir=strenv(PLUGIN_DIR) |
     .crowdsec_service.acquisition_path=strenv(CONFIG_DIR)+"/acquis.yaml" |
     .db_config.db_path=strenv(DATA_DIR)+"/crowdsec.db" |
+    .db_config.use_wal=true |
     .api.client.credentials_path=strenv(CONFIG_DIR)+"/local_api_credentials.yaml" |
     .api.server.profiles_path=strenv(CONFIG_DIR)+"/profiles.yaml" |
     .api.server.console_path=strenv(CONFIG_DIR)+"/console.yaml" |