From 5884f4de2ae1cd80303af29e6301d010f685c48c Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 25 Nov 2024 09:19:28 +0200 Subject: [PATCH] Fix var name --- include/spdlog/sinks/syslog_sink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/sinks/syslog_sink.h b/include/spdlog/sinks/syslog_sink.h index 913d41be..fe4d1b52 100644 --- a/include/spdlog/sinks/syslog_sink.h +++ b/include/spdlog/sinks/syslog_sink.h @@ -65,7 +65,7 @@ protected: // Simply maps spdlog's log level to syslog priority level. // virtual int syslog_prio_from_level(const details::log_msg &msg) const { - return syslog_levels_.at(static_cast(msg.level)); + return syslog_levels_.at(static_cast(msg.log_level)); } using levels_array = std::array;