Browse Source

fix invalid esc symbosl on logs

eden-orbis-ps4
lizzie 3 days ago
parent
commit
8275903b65
  1. 3
      src/common/logging/text_formatter.cpp

3
src/common/logging/text_formatter.cpp

@ -41,6 +41,9 @@ static void PrintMessage(const Entry& entry) noexcept {
#ifdef _WIN32 #ifdef _WIN32
auto const str = FormatLogMessage(entry).append(1, '\n'); auto const str = FormatLogMessage(entry).append(1, '\n');
fwrite(str.c_str(), 1, str.size(), stderr); fwrite(str.c_str(), 1, str.size(), stderr);
#elif defined(__OPENORBIS__)
auto const str = FormatLogMessage(entry).append(1, '\n');
fwrite(str.c_str(), 1, str.size(), stderr);
#else #else
#define ESC "\x1b" #define ESC "\x1b"
auto const color_str = [&entry]() -> const char* { auto const color_str = [&entry]() -> const char* {

Loading…
Cancel
Save