mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 15:42:10 +03:00
revert printing file/lineno in Error-messages as these are typically user-visible
For info and warn it's fine
This commit is contained in:
committed by
Alexander Krotov
parent
19e716b522
commit
2bf9fd6cbc
@@ -31,8 +31,7 @@ macro_rules! error {
|
||||
};
|
||||
($ctx:expr, $msg:expr, $($args:expr),* $(,)?) => {{
|
||||
let formatted = format!($msg, $($args),*);
|
||||
let full = format!("{}:{}: {}", file!(), line!(), &formatted);
|
||||
emit_event!($ctx, $crate::Event::Error(full));
|
||||
emit_event!($ctx, $crate::Event::Error(formatted));
|
||||
}};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user