mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
thread-name seems to be unnamed all the time so it's use is currently theoretic
This commit is contained in:
@@ -8,9 +8,8 @@ macro_rules! info {
|
|||||||
($ctx:expr, $msg:expr, $($args:expr),* $(,)?) => {{
|
($ctx:expr, $msg:expr, $($args:expr),* $(,)?) => {{
|
||||||
let formatted = format!($msg, $($args),*);
|
let formatted = format!($msg, $($args),*);
|
||||||
let thread = ::std::thread::current();
|
let thread = ::std::thread::current();
|
||||||
let full = format!("{thid:?}/{thname} {file}:{line}: {msg}",
|
let full = format!("{thid:?} {file}:{line}: {msg}",
|
||||||
thid = thread.id(),
|
thid = thread.id(),
|
||||||
thname = thread.name().unwrap_or("unnamed"),
|
|
||||||
file = file!(),
|
file = file!(),
|
||||||
line = line!(),
|
line = line!(),
|
||||||
msg = &formatted);
|
msg = &formatted);
|
||||||
@@ -26,9 +25,8 @@ macro_rules! warn {
|
|||||||
($ctx:expr, $msg:expr, $($args:expr),* $(,)?) => {{
|
($ctx:expr, $msg:expr, $($args:expr),* $(,)?) => {{
|
||||||
let formatted = format!($msg, $($args),*);
|
let formatted = format!($msg, $($args),*);
|
||||||
let thread = ::std::thread::current();
|
let thread = ::std::thread::current();
|
||||||
let full = format!("{thid:?}/{thname} {file}:{line}: {msg}",
|
let full = format!("{thid:?} {file}:{line}: {msg}",
|
||||||
thid = thread.id(),
|
thid = thread.id(),
|
||||||
thname = thread.name().unwrap_or("unnamed"),
|
|
||||||
file = file!(),
|
file = file!(),
|
||||||
line = line!(),
|
line = line!(),
|
||||||
msg = &formatted);
|
msg = &formatted);
|
||||||
|
|||||||
Reference in New Issue
Block a user