diff options
Diffstat (limited to 'src/zenutil/include')
| -rw-r--r-- | src/zenutil/include/zenutil/logging/rotatingfilesink.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/zenutil/include/zenutil/logging/rotatingfilesink.h b/src/zenutil/include/zenutil/logging/rotatingfilesink.h index e4a99fc30..ca4649ba8 100644 --- a/src/zenutil/include/zenutil/logging/rotatingfilesink.h +++ b/src/zenutil/include/zenutil/logging/rotatingfilesink.h @@ -60,7 +60,7 @@ public: RwLock::ExclusiveLockScope RotateLock(m_Lock); m_CurrentFile.Close(); } - catch (std::exception&) + catch (const std::exception&) { } } @@ -101,7 +101,7 @@ public: } } } - catch (std::exception&) + catch (const std::exception&) { // Silently eat errors } @@ -116,7 +116,7 @@ public: m_CurrentFile.Flush(); } } - catch (std::exception&) + catch (const std::exception&) { // Silently eat errors } @@ -129,7 +129,7 @@ public: RwLock::ExclusiveLockScope _(m_Lock); m_Formatter = spdlog::details::make_unique<spdlog::pattern_formatter>(pattern); } - catch (std::exception&) + catch (const std::exception&) { // Silently eat errors } @@ -141,7 +141,7 @@ public: RwLock::ExclusiveLockScope _(m_Lock); m_Formatter = std::move(sink_formatter); } - catch (std::exception&) + catch (const std::exception&) { // Silently eat errors } |