Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Logging.cpp @ 4320:08e3600dcb1b
fix logging
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Mon, 23 Nov 2020 14:23:10 +0100 |
parents | a691916ab535 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4318:3c85edacd0ee | 4320:08e3600dcb1b |
---|---|
716 loggingStreamsContext_.reset(NULL); | 716 loggingStreamsContext_.reset(NULL); |
717 } | 717 } |
718 | 718 |
719 void Reset() | 719 void Reset() |
720 { | 720 { |
721 if (logTargetFile_.empty() && logTargetFolder_.empty()) | |
722 { | |
723 return; | |
724 } | |
725 | |
726 { | 721 { |
727 boost::mutex::scoped_lock lock(loggingStreamsMutex_); | 722 boost::mutex::scoped_lock lock(loggingStreamsMutex_); |
728 loggingStreamsContext_.reset(new LoggingStreamsContext); | 723 loggingStreamsContext_.reset(new LoggingStreamsContext); |
729 } | 724 } |
730 | 725 |