Skip to content

Commit b2523f4

Browse files
committed
Replaced fmt::format to std::ostringstream in order to avoid clang-tidy and Bazel build issues
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
1 parent b0b1b7b commit b2523f4

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/utl/src/Logger.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "spdlog/pattern_formatter.h"
2424
#endif
2525
#include "spdlog/common.h"
26-
#include "spdlog/fmt/bundled/format.h"
2726
#include "spdlog/sinks/basic_file_sink.h"
2827
#include "spdlog/sinks/ostream_sink.h"
2928
#include "spdlog/sinks/stdout_color_sinks.h"
@@ -196,9 +195,9 @@ void Logger::addWarningMetrics()
196195
if (message_counters_[i][j] > 0
197196
&& message_levels_[i][j] == spdlog::level::warn) {
198197
warning_type_cnt++;
199-
log_metric(
200-
fmt::format("flow__warnings__count:{}-{}", tool_names_[i], j),
201-
std::to_string(message_counters_[i][j]));
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]));
202201
}
203202
}
204203
}

0 commit comments

Comments
 (0)