mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-28 05:32:51 +01:00
Decrease default log file size from 50 MiB to 20 MiB
This commit is contained in:
parent
41cbd455d6
commit
5ca57cb3c1
@ -652,8 +652,8 @@ logging:
|
||||
# in the format pylink-commands.log, pylink-commands.log.1, pylink-commands.log.2, etc.
|
||||
# If either max_bytes or backup_count is 0, log rotation will be disabled.
|
||||
|
||||
# Max amount of bytes per file, before rotation is done. Defaults to 50 MiB (52428800 bytes).
|
||||
#max_bytes: 52428800
|
||||
# Max amount of bytes per file before rotation is done. Defaults to 20 MiB (20971520 bytes).
|
||||
#max_bytes: 20971520
|
||||
|
||||
# Amount of backups to make. Defaults to 5.
|
||||
#backup_count: 5
|
||||
|
4
log.py
4
log.py
@ -53,8 +53,8 @@ def _make_file_logger(filename, level=None):
|
||||
|
||||
logrotconf = conf.conf.get('logging', {}).get('filerotation', {})
|
||||
|
||||
# Max amount of bytes per file, before rotation is done. Defaults to 50 MiB.
|
||||
maxbytes = logrotconf.get('max_bytes', 52428800)
|
||||
# Max amount of bytes per file, before rotation is done. Defaults to 20 MiB.
|
||||
maxbytes = logrotconf.get('max_bytes', 20971520)
|
||||
|
||||
# Amount of backups to make (e.g. pylink-debug.log, pylink-debug.log.1, pylink-debug.log.2, ...)
|
||||
# Defaults to 5.
|
||||
|
Loading…
Reference in New Issue
Block a user