diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-06-01 09:52:19 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-02 13:07:49 +0000 |
commit | b348cccce22b4b3a8bc26d3d840c64fe15915a04 (patch) | |
tree | 5627c1b4c3307ccba1076ce8d0bfcbe374d99462 /src/mongo | |
parent | 2c7af4dc401cc366b796461d4d3a6e2fb269ec9b (diff) | |
download | mongo-b348cccce22b4b3a8bc26d3d840c64fe15915a04.tar.gz |
SERVER-48512 Add missing overload for logging with DynamicAttributes and dual string API
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/logv2/log_detail.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/logv2/log_detail.h b/src/mongo/logv2/log_detail.h index aab2d9faf09..1fcac123c25 100644 --- a/src/mongo/logv2/log_detail.h +++ b/src/mongo/logv2/log_detail.h @@ -87,6 +87,16 @@ void doLogUnpacked(int32_t id, doLogImpl(id, severity, options, StringData(msg.data(), msg.size()), dynamicAttrs); } +template <typename S, size_t N> +void doLogUnpacked(int32_t id, + LogSeverity const& severity, + LogOptions const& options, + const S&, // formatMsg not used + const char (&msg)[N], + const DynamicAttributes& dynamicAttrs) { + doLogUnpacked(id, severity, options, msg, dynamicAttrs); +} + // Args may be raw attributes or CombinedAttr's here. We need to flatten any combined attributes // into just raw attributes for doLogUnpacked. We do this building flat tuples for every argument, // concatenating them into a single tuple that we can expand again using apply. |