diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-03-09 10:02:02 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-13 14:36:35 +0000 |
commit | 5094b4f2f2ee9de07dc4c3d3c320e967595496f1 (patch) | |
tree | ee5aacbd54e4b8454067bfafe0fbd7c604439c9a /src/mongo/db/server_options_helpers.cpp | |
parent | 8c028c6959290710de551359fb296f655584d43f (diff) | |
download | mongo-5094b4f2f2ee9de07dc4c3d3c320e967595496f1.tar.gz |
SERVER-46406 Perf improvements in the logger.
Use fmt::compile and fmt::format_int when possible.
Diffstat (limited to 'src/mongo/db/server_options_helpers.cpp')
-rw-r--r-- | src/mongo/db/server_options_helpers.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/server_options_helpers.cpp b/src/mongo/db/server_options_helpers.cpp index 163cb6ce737..46380edfa36 100644 --- a/src/mongo/db/server_options_helpers.cpp +++ b/src/mongo/db/server_options_helpers.cpp @@ -313,9 +313,11 @@ Status storeBaseOptions(const moe::Environment& params) { if (formatterName == "iso8601-utc") { MessageEventDetailsEncoder::setDateFormatter(outputDateAsISOStringUTC); serverGlobalParams.logTimestampFormat = logv2::LogTimestampFormat::kISO8601UTC; + setDateFormatIsLocalTimezone(false); } else if (formatterName == "iso8601-local") { MessageEventDetailsEncoder::setDateFormatter(outputDateAsISOStringLocal); serverGlobalParams.logTimestampFormat = logv2::LogTimestampFormat::kISO8601Local; + setDateFormatIsLocalTimezone(true); } else { StringBuilder sb; sb << "Value of logTimestampFormat must be one of iso8601-utc " |