From 8ce1b6ec9c2374df4bf23d6cdd8356792780e265 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 16 May 2020 08:27:08 +0200 Subject: [PATCH] Fix the LOL_DEBUG environment variable handling logic. --- include/lol/private/base/msg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/lol/private/base/msg.h b/include/lol/private/base/msg.h index 4bbbb7dc..133a1f81 100644 --- a/include/lol/private/base/msg.h +++ b/include/lol/private/base/msg.h @@ -66,8 +66,8 @@ private: #if !_DEBUG if (type == message_type::debug) { - static bool const disable_debug = sys::getenv("LOL_DEBUG").size() > 0; - if (disable_debug) + static bool const enforce_debug = sys::getenv("LOL_DEBUG").size() > 0; + if (!enforce_debug) return; } #endif