[DEBUG] remove the wait in critical log in release

This commit is contained in:
Edouard DUPIN 2017-03-16 21:21:20 +01:00
parent 57378a0e03
commit 62b6710c67

View File

@ -711,7 +711,9 @@ void elog::logChar(int32_t _id, int32_t _level, int32_t _ligne, const char* _fun
#endif #endif
g_lock.unlock(); g_lock.unlock();
if (_level == level_critical) { if (_level == level_critical) {
#if defined(DEBUG)
std::this_thread::sleep_for(std::chrono::milliseconds(700)); std::this_thread::sleep_for(std::chrono::milliseconds(700));
#endif
displayBacktrace(true, 2); displayBacktrace(true, 2);
} }
// Display backtrace to facilitate the error problems // Display backtrace to facilitate the error problems