From e79d95925a31a277061f5cfc90fb16d53270159a Mon Sep 17 00:00:00 2001 From: Matteo Del Seppia Date: Mon, 2 Dec 2024 20:46:59 +0100 Subject: [PATCH] Remove unnecessary file close --- include/spdlog/sinks/basic_file_sink-inl.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/spdlog/sinks/basic_file_sink-inl.h b/include/spdlog/sinks/basic_file_sink-inl.h index 8dca5944a..5883ea692 100644 --- a/include/spdlog/sinks/basic_file_sink-inl.h +++ b/include/spdlog/sinks/basic_file_sink-inl.h @@ -28,7 +28,6 @@ SPDLOG_INLINE const filename_t &basic_file_sink::filename() const { template SPDLOG_INLINE void basic_file_sink::truncate() { - file_helper_.close(); file_helper_.reopen(true); }