diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2022-05-13 04:01:14 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-13 04:58:26 +0000 |
commit | 95edbf51b92e6944043590fe781c901d2a815f9f (patch) | |
tree | f0c7e827152480a01f1485c11b4bbbb6f6ef078a /src/mongo/logv2/log_source.h | |
parent | 33ced84ad3537acb5a70907b6febb34adbcfbbcc (diff) | |
download | mongo-95edbf51b92e6944043590fe781c901d2a815f9f.tar.gz |
SERVER-63852 ThreadName rewrite
Diffstat (limited to 'src/mongo/logv2/log_source.h')
-rw-r--r-- | src/mongo/logv2/log_source.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/logv2/log_source.h b/src/mongo/logv2/log_source.h index 4051bcfb55a..8e83cb6ad54 100644 --- a/src/mongo/logv2/log_source.h +++ b/src/mongo/logv2/log_source.h @@ -74,10 +74,10 @@ public: add_attribute_unlocked(attributes::timeStamp(), boost::log::attributes::make_function([]() { return Date_t::now(); })); - add_attribute_unlocked( - attributes::threadName(), boost::log::attributes::make_function([isShutdown]() { - return isShutdown ? "shutdown"_sd : ThreadName::getStaticString(); - })); + add_attribute_unlocked(attributes::threadName(), + boost::log::attributes::make_function([isShutdown]() { + return isShutdown ? "shutdown"_sd : getThreadName(); + })); } explicit LogSource(const LogDomain::Internal* domain) : LogSource(domain, false) {} |