We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0b1b7b commit b2523f4Copy full SHA for b2523f4
1 file changed
src/utl/src/Logger.cpp
@@ -23,7 +23,6 @@
23
#include "spdlog/pattern_formatter.h"
24
#endif
25
#include "spdlog/common.h"
26
-#include "spdlog/fmt/bundled/format.h"
27
#include "spdlog/sinks/basic_file_sink.h"
28
#include "spdlog/sinks/ostream_sink.h"
29
#include "spdlog/sinks/stdout_color_sinks.h"
@@ -196,9 +195,9 @@ void Logger::addWarningMetrics()
196
195
if (message_counters_[i][j] > 0
197
&& message_levels_[i][j] == spdlog::level::warn) {
198
warning_type_cnt++;
199
- log_metric(
200
- fmt::format("flow__warnings__count:{}-{}", tool_names_[i], j),
201
- std::to_string(message_counters_[i][j]));
+ std::ostringstream metric_name;
+ metric_name << "flow__warnings__count:" << tool_names_[i] << "-" << j;
+ log_metric(metric_name.str(), std::to_string(message_counters_[i][j]));
202
}
203
204
0 commit comments