From ffb7c317b5799936ea5f05f71e0909a9cae380c5 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 9 Aug 2019 10:16:18 +0300 Subject: [PATCH] Fix #1176 again --- include/spdlog/logger.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index f3bdd665..602ddb30 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -225,14 +225,14 @@ public: fmt::memory_buffer buf; details::os::wstr_to_utf8buf(wstring_view_t(wbuf.data(), wbuf.size()), buf); - details::log_msg log_msg(source, name_, lvl, string_view_t(buf.data(), buf.size())); + details::log_msg log_msg(loc, name_, lvl, string_view_t(buf.data(), buf.size())); sink_it_(log_msg); } SPDLOG_LOGGER_CATCH() } template - void log(source_loc source, level::level_enum lvl, wstring_view_t fmt, const Args &... args) + void log(source_loc loc, level::level_enum lvl, wstring_view_t fmt, const Args &... args) { if (should_log(lvl)) {