diff options
| author | 2019-11-14 13:35:23 +0000 | |
|---|---|---|
| committer | 2019-11-14 13:35:23 +0000 | |
| commit | c9cb8c8805b4992e18c55c0050e7af394c0bfbfc (patch) | |
| tree | b655c384ec7777bb25dcb94446a085e68bdf0f33 /src/Logging.py | |
| parent | move default log location to ~/.bitbot/logs/ (diff) | |
| signature | ||
set info log rolling backup count to 1 (0 means "keep all backups")
Diffstat (limited to 'src/Logging.py')
| -rw-r--r-- | src/Logging.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Logging.py b/src/Logging.py index e883540a..edb1687d 100644 --- a/src/Logging.py +++ b/src/Logging.py @@ -60,7 +60,7 @@ class Log(object): info_path = os.path.join(location, "info.log") info_handler = logging.handlers.TimedRotatingFileHandler( - info_path, when="midnight", backupCount=0) + info_path, when="midnight", backupCount=1) info_handler.setLevel(LEVELS["info"]) info_handler.setFormatter(formatter) self.logger.addHandler(info_handler) |
