summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-08-03 17:01:12 -0400
committerMason Reed <mason@vector35.com>2025-08-03 17:01:12 -0400
commitbb1898963e4b21b88503c1cc0f9239f8b11f9fbc (patch)
tree4f28da85edf8ce2d45ed822280bc3bb2418702d8 /rust/src
parent1455831091552327502612013281528881111506 (diff)
[Rust] Misc formatting
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/logger.rs19
1 files changed, 17 insertions, 2 deletions
diff --git a/rust/src/logger.rs b/rust/src/logger.rs
index ceba29ec..b48d847a 100644
--- a/rust/src/logger.rs
+++ b/rust/src/logger.rs
@@ -163,7 +163,15 @@ pub trait LogListener: 'static + Sync {
fn level(&self) -> Level;
fn close(&self) {}
- fn log_with_stack_trace(&self, session: usize, level: Level, _stack_trace: &str, msg: &str, logger_name: &str, tid: usize) {
+ fn log_with_stack_trace(
+ &self,
+ session: usize,
+ level: Level,
+ _stack_trace: &str,
+ msg: &str,
+ logger_name: &str,
+ tid: usize,
+ ) {
self.log(session, level, msg, logger_name, tid);
}
}
@@ -247,7 +255,14 @@ extern "C" fn cb_log_with_stack_trace<L>(
let stack_trace_str = raw_to_string(stack_trace).unwrap();
let msg_str = raw_to_string(msg).unwrap();
let logger_name_str = raw_to_string(logger_name).unwrap();
- listener.log_with_stack_trace(session, level, &stack_trace_str, &msg_str, &logger_name_str, tid);
+ listener.log_with_stack_trace(
+ session,
+ level,
+ &stack_trace_str,
+ &msg_str,
+ &logger_name_str,
+ tid,
+ );
})
}