From 69bbdc0e9d7f26e90bbd89bd16f65b29f44cfffd Mon Sep 17 00:00:00 2001 From: Diavolo Date: Sat, 2 Jul 2022 11:41:59 +0200 Subject: [PATCH] [Logger] Make debug text less lengthy --- src/Components/Modules/Logger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/Logger.cpp b/src/Components/Modules/Logger.cpp index 9d9ecf89..c47efb6f 100644 --- a/src/Components/Modules/Logger.cpp +++ b/src/Components/Modules/Logger.cpp @@ -50,11 +50,11 @@ namespace Components void Logger::DebugInternal(std::string_view fmt, std::format_args&& args, [[maybe_unused]] const std::source_location& loc) { - const auto msg = std::vformat(fmt, args); #ifdef LOGGER_TRACE + const auto msg = std::vformat(fmt, args); const auto out = std::format("Debug:\n {}\nFile: {}\nLine: {}\n", msg, loc.file_name(), loc.line()); #else - const auto out = std::format("Debug:\n {}\n", msg); + const auto out = "^2" + std::vformat(fmt, args); #endif Logger::MessagePrint(Game::CON_CHANNEL_DONT_FILTER, out);