add modname to file log

This commit is contained in:
Preston Baxter 2024-08-17 16:23:45 -05:00
parent f6c4c01e95
commit 0421e498e8
1 changed files with 1 additions and 1 deletions

View File

@ -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(),