Use trace log level for multi-line table factory options on rocksdb startup.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-10-02 05:29:48 +00:00
1 parent ae52676e33
commit 9383922d09
2 files changed
+4 -5

No files matched your search

+3 -4
View File
@@ -1,5 +1,5 @@
use rocksdb::LogLevel;
use tuwunel_core::{debug, error, warn};
use tuwunel_core::{debug, error, trace, warn};
#[tracing::instrument(
parent = None,
@@ -9,11 +9,10 @@ use tuwunel_core::{debug, error, warn};
)]
pub(crate) fn handle(level: LogLevel, msg: &str) {
let msg = msg.trim();
if msg.starts_with("Options") {
return;
}
let is_options = msg.starts_with("Options") || msg.starts_with("table_factory options");
match level {
| _ if is_options => trace!("{msg}"),
| LogLevel::Header | LogLevel::Debug => debug!("{msg}"),
| LogLevel::Error | LogLevel::Fatal => error!("{msg}"),
| LogLevel::Info => debug!("{msg}"),