From b348cccce22b4b3a8bc26d3d840c64fe15915a04 Mon Sep 17 00:00:00 2001 From: Henrik Edin Date: Mon, 1 Jun 2020 09:52:19 -0400 Subject: SERVER-48512 Add missing overload for logging with DynamicAttributes and dual string API --- src/mongo/logv2/log_detail.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/mongo') 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 +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. -- cgit v1.2.1