diff --git a/src/Loggers/OwnJSONPatternFormatter.cpp b/src/Loggers/OwnJSONPatternFormatter.cpp index e4f8e0facae..4263ad5925a 100644 --- a/src/Loggers/OwnJSONPatternFormatter.cpp +++ b/src/Loggers/OwnJSONPatternFormatter.cpp @@ -118,7 +118,7 @@ void OwnJSONPatternFormatter::formatExtended(const DB::ExtendedLogMessage & msg_ writeJSONString(level, wb, settings); DB::writeChar(':', wb); int priority = static_cast(msg.getPriority()); - writeJSONString(std::to_string(priority), wb, settings); + writeJSONString(getPriorityName(priority), wb, settings); } if (!query_id.empty())