Skip to content

Commit d04cca3

Browse files
committed
Reused fmt::format() with NOLINT comment
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
1 parent 2f7821a commit d04cca3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/utl/src/Logger.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,10 @@ void Logger::addWarningMetrics()
195195
if (message_counters_[i][j] > 0
196196
&& message_levels_[i][j] == spdlog::level::warn) {
197197
warning_type_cnt++;
198-
std::ostringstream metric_name;
199-
metric_name << "flow__warnings__count:" << tool_names_[i] << "-" << j;
200-
log_metric(metric_name.str(), std::to_string(message_counters_[i][j]));
198+
log_metric(
199+
// NOLINTNEXTLINE(misc-include-cleaner)
200+
fmt::format("flow__warnings__count:{}-{}", tool_names_[i], j),
201+
std::to_string(message_counters_[i][j]));
201202
}
202203
}
203204
}

0 commit comments

Comments
 (0)