diff options
author | HybridDog <ovvv@web.de> | 2019-09-07 19:38:54 +0200 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-09-07 19:38:54 +0200 |
commit | 36bfc67574aaa54c3e7f814ec7c5336e9dbc1ac4 (patch) | |
tree | ec840ecfa24a1353b01cf5a477d111a7c8b8ea78 /src/log.h | |
parent | 2c9edefde3d941b1efa5c93a087814d6bc3509e6 (diff) | |
download | minetest-36bfc67574aaa54c3e7f814ec7c5336e9dbc1ac4.tar.gz minetest-36bfc67574aaa54c3e7f814ec7c5336e9dbc1ac4.tar.bz2 minetest-36bfc67574aaa54c3e7f814ec7c5336e9dbc1ac4.zip |
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.
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |