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
2025-09-27 23:38:13 +00:00
parent ae52676e33
commit 9383922d09
2 changed files with 4 additions and 5 deletions

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}"),