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:
@@ -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}"),
|
||||
|
||||
@@ -303,7 +303,7 @@ fn worker_init(&self, id: usize) {
|
||||
}
|
||||
}
|
||||
|
||||
debug!(
|
||||
trace!(
|
||||
?group,
|
||||
affinity = ?affinity.collect::<Vec<_>>(),
|
||||
"worker ready"
|
||||
|
||||
Reference in New Issue
Block a user