Update mdc

This commit is contained in:
gabime 2024-03-29 16:57:55 +03:00
parent 4517ce8b5c
commit cba66029e2

View File

@ -877,7 +877,7 @@ public:
: flag_formatter(padinfo) {} : flag_formatter(padinfo) {}
void format(const details::log_msg &, const std::tm &, memory_buf_t &dest) override { void format(const details::log_msg &, const std::tm &, memory_buf_t &dest) override {
auto mdc_map = mdc::get_context(); auto &mdc_map = mdc::get_context();
if (mdc_map.empty()) { if (mdc_map.empty()) {
ScopedPadder p(0, padinfo_, dest); ScopedPadder p(0, padinfo_, dest);
return; return;