From 62b6710c674f78c8145ea21878cf2cc4a1859087 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Thu, 16 Mar 2017 21:21:20 +0100 Subject: [PATCH] [DEBUG] remove the wait in critical log in release --- elog/log.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elog/log.cpp b/elog/log.cpp index 50cbf1b..6bde6b7 100644 --- a/elog/log.cpp +++ b/elog/log.cpp @@ -711,7 +711,9 @@ void elog::logChar(int32_t _id, int32_t _level, int32_t _ligne, const char* _fun #endif g_lock.unlock(); if (_level == level_critical) { + #if defined(DEBUG) std::this_thread::sleep_for(std::chrono::milliseconds(700)); + #endif displayBacktrace(true, 2); } // Display backtrace to facilitate the error problems