Move debug.txt after it grows too big (#8904)
authorHybridDog <ovvv@web.de>
Sat, 7 Sep 2019 17:38:54 +0000 (19:38 +0200)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Sat, 7 Sep 2019 17:38:54 +0000 (19:38 +0200)
commit36bfc67574aaa54c3e7f814ec7c5336e9dbc1ac4
treeec840ecfa24a1353b01cf5a477d111a7c8b8ea78
parent2c9edefde3d941b1efa5c93a087814d6bc3509e6
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.
builtin/settingtypes.txt
src/defaultsettings.cpp
src/log.cpp
src/log.h
src/main.cpp