From a8b0bb0167d06b19bf2251f060e9de6e870901fe Mon Sep 17 00:00:00 2001 From: Majid Date: Fri, 23 Feb 2018 17:13:09 +1100 Subject: [PATCH] update fix --- src/easylogging++.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/easylogging++.cc b/src/easylogging++.cc index bb98e568d..9efb041c8 100644 --- a/src/easylogging++.cc +++ b/src/easylogging++.cc @@ -2119,8 +2119,10 @@ namespace base { // DefaultLogDispatchCallback void DefaultLogDispatchCallback::handle(const LogDispatchData* data) { +#if defined(ELPP_THREAD_SAFE) LogDispatchCallback::handle(data); base::threading::ScopedLock scopedLock(fileHandle(data)); +#endif m_data = data; dispatch(m_data->logMessage()->logger()->logBuilder()->build(m_data->logMessage(), m_data->dispatchAction() == base::DispatchAction::NormalLog));