mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 13:03:27 +02:00
Allow logger usage on console applications
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
|
||||
EventDispatcher g_dispatcher;
|
||||
|
||||
|
||||
void EventDispatcher::flush()
|
||||
{
|
||||
while(!m_eventList.empty())
|
||||
|
@@ -61,7 +61,9 @@ void Logger::log(Fw::LogLevel level, const std::string& message)
|
||||
}
|
||||
|
||||
if(level == Fw::LogFatal) {
|
||||
#ifdef OTCLIENT
|
||||
g_window.displayFatalError(message);
|
||||
#endif
|
||||
ignoreLogs = true;
|
||||
exit(-1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user