diff --git a/src/util/log.rs b/src/util/log.rs index 29e24040fb5..292a4b604cd 100644 --- a/src/util/log.rs +++ b/src/util/log.rs @@ -110,7 +110,10 @@ fn make_json_logger() -> Logger { info.line() }), "thread" => FnValue(move |_| { - format!("{:?}", thread::current().id()) + match thread::current().name() { + None => format!("{:?}", thread::current().id()), + Some(name) => name.to_string(), + } }), );