We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d37a30 commit e97fedaCopy full SHA for e97feda
1 file changed
source/Logger/Logger.cpp
@@ -131,6 +131,11 @@ static void remove_old_files(const std::filesystem::path& dir)
131
continue;
132
}
133
134
+ const auto ext = path_to_utf8_string(entry.path().extension());
135
+ if (ext != ".log" && ext != ".jpg" && ext != ".png") {
136
+ continue;
137
+ }
138
+
139
auto last_write = entry.last_write_time(ec);
140
if (ec) {
141
0 commit comments