From 36bfc67574aaa54c3e7f814ec7c5336e9dbc1ac4 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sat, 7 Sep 2019 19:38:54 +0200 Subject: Move debug.txt after it grows too big (#8904) Before opening the file for writing, its file size is tested. If it exceeds 50 MB, it is moved to debut.txt.1, otherwise the log is appended to the old messages. An old debut.txt.1 is removed if it already exists. --- src/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/log.h') diff --git a/src/log.h b/src/log.h index 1427d1364..6350d8a86 100644 --- a/src/log.h +++ b/src/log.h @@ -165,7 +165,7 @@ private: class FileLogOutput : public ICombinedLogOutput { public: - void open(const std::string &filename); + void setFile(const std::string &filename, s64 file_size_max); void logRaw(LogLevel lev, const std::string &line) { -- cgit v1.2.3