set default rocksdb log level to error
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
e90cd48f61
commit
7bfb86a851
2 changed files with 3 additions and 3 deletions
|
@ -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 }
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue