summaryrefslogtreecommitdiff
path: root/src/mongo/util/concurrency/thread_name.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/concurrency/thread_name.cpp')
-rw-r--r--src/mongo/util/concurrency/thread_name.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mongo/util/concurrency/thread_name.cpp b/src/mongo/util/concurrency/thread_name.cpp
index 73444d5e6bc..9f31f2596f6 100644
--- a/src/mongo/util/concurrency/thread_name.cpp
+++ b/src/mongo/util/concurrency/thread_name.cpp
@@ -133,8 +133,9 @@ void setThreadName(StringData name) {
int error = pthread_setname_np(threadNameCopy.c_str());
if (error) {
LOGV2(23102,
- "Ignoring error from setting thread name: {errnoWithDescription_error}",
- "errnoWithDescription_error"_attr = errnoWithDescription(error));
+ "Ignoring error from setting thread name: {error}",
+ "Ignoring error from setting thread name",
+ "error"_attr = errnoWithDescription(error));
}
#elif defined(__linux__) && defined(MONGO_CONFIG_HAVE_PTHREAD_SETNAME_NP)
// Do not set thread name on the main() thread. Setting the name on main thread breaks
@@ -156,8 +157,9 @@ void setThreadName(StringData name) {
if (error) {
LOGV2(23103,
- "Ignoring error from setting thread name: {errnoWithDescription_error}",
- "errnoWithDescription_error"_attr = errnoWithDescription(error));
+ "Ignoring error from setting thread name: {error}",
+ "Ignoring error from setting thread name",
+ "error"_attr = errnoWithDescription(error));
}
}
#endif