From 5e641e2886efb336d66bcf1252fe7ce701aada24 Mon Sep 17 00:00:00 2001 From: strawberry Date: Sun, 24 Dec 2023 00:29:39 -0500 Subject: [PATCH] move default rocksdb logging from info to warn info is still logging useless database statistics and metrics that will accumulate, less I/O activity. Signed-off-by: strawberry --- src/config/mod.rs | 2 +- src/database/abstraction/rocksdb.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/mod.rs b/src/config/mod.rs index 21cf6bf9..58395e63 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -383,7 +383,7 @@ fn default_presence_offline_timeout_s() -> u64 { } fn default_rocksdb_log_level() -> String { - "info".to_owned() + "warn".to_owned() } fn default_rocksdb_log_time_to_roll() -> usize { diff --git a/src/database/abstraction/rocksdb.rs b/src/database/abstraction/rocksdb.rs index 71f8358d..47203f08 100644 --- a/src/database/abstraction/rocksdb.rs +++ b/src/database/abstraction/rocksdb.rs @@ -42,7 +42,7 @@ fn db_options(rocksdb_cache: &rocksdb::Cache, config: &Config) -> rocksdb::Optio "warn" => Warn, "error" => Error, "fatal" => Fatal, - _ => Info, + _ => Warn, }; db_opts.set_log_level(rocksdb_log_level);