mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2024-11-26 07:34:25 +00:00
set default rocksdb log level to error
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
e90cd48f61
commit
7bfb86a851
|
@ -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…
Reference in a new issue