diff --git a/src/system_wrappers/source/trace_impl.cc b/src/system_wrappers/source/trace_impl.cc index ad908a3ce..5600d3944 100644 --- a/src/system_wrappers/source/trace_impl.cc +++ b/src/system_wrappers/source/trace_impl.cc @@ -429,8 +429,14 @@ WebRtc_Word32 TraceImpl::AddMessage( void TraceImpl::AddMessageToList( const char traceMessage[WEBRTC_TRACE_MAX_MESSAGE_SIZE], const WebRtc_UWord16 length, - const TraceLevel level) -{ + const TraceLevel level) { +#ifdef WEBRTC_DIRECT_TRACE + if (_callback) { + _callback->Print(level, traceMessage, length); + } + return; +#endif + CriticalSectionScoped lock(_critsectArray); if(_nextFreeIdx[_activeQueue] >= WEBRTC_TRACE_MAX_QUEUE)