From ec8b0beddd01323caeba3b3b53f2c1923fc5e08d Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 5 Feb 2022 17:16:36 +0200 Subject: [PATCH] comment --- include/spdlog/sinks/rotating_file_sink-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/sinks/rotating_file_sink-inl.h b/include/spdlog/sinks/rotating_file_sink-inl.h index 9360edcd..faff7820 100644 --- a/include/spdlog/sinks/rotating_file_sink-inl.h +++ b/include/spdlog/sinks/rotating_file_sink-inl.h @@ -70,7 +70,7 @@ SPDLOG_INLINE void rotating_file_sink::sink_it_(const details::log_msg &m auto new_size = current_size_ + formatted.size(); // rotate if the new estimated file size exceeds max size. - // check also that the real size > 0 to better deal with full disk (see issue #2261). + // rotate only if the real size > 0 to better deal with full disk (see issue #2261). // we only check the real size when new_size > max_size_ because it is relatively expensive. if (new_size > max_size_ && file_helper_.size() > 0) {