set default rocksdb log level to error

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-06 18:17:03 -05:00 committed by June
parent e90cd48f61
commit 7bfb86a851
2 changed files with 3 additions and 3 deletions

View file

@ -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 }

View file

@ -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 {