From 7bfb86a851d574cd41bdeb8957cf363230feed9b Mon Sep 17 00:00:00 2001 From: strawberry Date: Wed, 6 Mar 2024 18:17:03 -0500 Subject: [PATCH] set default rocksdb log level to error Signed-off-by: strawberry --- src/config/mod.rs | 2 +- src/database/abstraction/rocksdb.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/mod.rs b/src/config/mod.rs index ba2cdcbe..bdb66b31 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -439,7 +439,7 @@ fn default_presence_idle_timeout_s() -> u64 { 5 * 60 } fn default_presence_offline_timeout_s() -> u64 { 30 * 60 } -fn default_rocksdb_log_level() -> String { "warn".to_owned() } +fn default_rocksdb_log_level() -> String { "error".to_owned() } fn default_rocksdb_log_time_to_roll() -> usize { 0 } diff --git a/src/database/abstraction/rocksdb.rs b/src/database/abstraction/rocksdb.rs index bcb4db80..378d4a18 100644 --- a/src/database/abstraction/rocksdb.rs +++ b/src/database/abstraction/rocksdb.rs @@ -44,9 +44,9 @@ fn db_options(rocksdb_cache: &rocksdb::Cache, config: &Config) -> rocksdb::Optio let rocksdb_log_level = match config.rocksdb_log_level.as_ref() { "debug" => Debug, "info" => Info, - "error" => Error, + "warn" => Warn, "fatal" => Fatal, - _ => Warn, + _ => Error, }; let threads = if config.rocksdb_parallelism_threads == 0 {