From 59dd9f6203ef4301505cd0857c20da97dd2aca5f Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 14 Jul 2019 18:39:43 +0300 Subject: [PATCH] comment --- include/spdlog/sinks/wincolor_sink-inl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/spdlog/sinks/wincolor_sink-inl.h b/include/spdlog/sinks/wincolor_sink-inl.h index 4258be9f..a38e3f72 100644 --- a/include/spdlog/sinks/wincolor_sink-inl.h +++ b/include/spdlog/sinks/wincolor_sink-inl.h @@ -23,6 +23,7 @@ SPDLOG_INLINE wincolor_sink::wincolor_sink(HANDLE out_handle, colo // ::GetConsoleMode() should return 0 if it is redirected or not valid console handle. DWORD console_mode; in_console_ = ::GetConsoleMode(out_handle, &console_mode) != 0; + set_color_mode(mode); colors_[level::trace] = WHITE; colors_[level::debug] = CYAN;