From 0421e498e8f4a6a6011efeef7e11f4737c8be5d1 Mon Sep 17 00:00:00 2001 From: Preston Baxter Date: Sat, 17 Aug 2024 16:23:45 -0500 Subject: [PATCH] add modname to file log --- src/freeswitch/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freeswitch/macros.rs b/src/freeswitch/macros.rs index 927f446..63bf2c8 100644 --- a/src/freeswitch/macros.rs +++ b/src/freeswitch/macros.rs @@ -3,7 +3,7 @@ macro_rules! switch_log_printf { ($level:expr, $msg:expr) => { switch_log_printf( switch_text_channel_t_SWITCH_CHANNEL_ID_LOG, - cstring(file!()).as_ptr(), + cstring(format!("{modname}_{}",file!())).as_ptr(), cstring(function_name!()).as_ptr(), line!() as i32, std::ptr::null(),