We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65e388e commit 24dde31Copy full SHA for 24dde31
include/spdlog/sinks/rotating_file_sink-inl.h
@@ -71,6 +71,7 @@ SPDLOG_INLINE filename_t rotating_file_sink<Mutex>::filename() {
71
72
template <typename Mutex>
73
SPDLOG_INLINE void rotating_file_sink<Mutex>::rotate_now() {
74
+ std::lock_guard<Mutex> lock(base_sink<Mutex>::mutex_);
75
rotate_();
76
}
77
0 commit comments