From ec39acfb027536c0efcf8a39be8ed921a5db6202 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Thu, 6 Oct 2022 23:28:55 +0200 Subject: [PATCH] Small logging fixes and more inline comments to explain this feature in detail. --- bin/linspector | 4 ++-- etc/linspector.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/linspector b/bin/linspector index 338f437..354a780 100755 --- a/bin/linspector +++ b/bin/linspector @@ -37,7 +37,7 @@ logger = logging.getLogger('linspector') # i currently only increase the 3rd number because the goal is that 0.19.* will become the first # stable version. -__version__ = '0.19.40.dev1' +__version__ = '0.19.41.dev1' __author__ = 'Johannes Findeisen ' @@ -117,7 +117,7 @@ def main(): log_file_size_bytes = int(configuration.get_option('linspector', 'log_file_size_bytes')) else: - # default log file size is 10000000 bytes + # default log file size is 10000000 bytes (10MiB) log_file_size_bytes = int(10000000) if configuration.get_option('linspector', 'log_file_count'): diff --git a/etc/linspector.conf b/etc/linspector.conf index e2b7a1a..eabe9cc 100644 --- a/etc/linspector.conf +++ b/etc/linspector.conf @@ -9,9 +9,9 @@ log_file = ~/code/linspector/linspector/log/linspector.log ; the size of the log file higher to increase the log history. log_file_count = 10 ; log file size in megabytes as int. -log_file_size = 1 +log_file_size = 5 ; log file size in bytes as int. you can set to bytes if you want to set a value lower then 1 megabyte. but it will -; only be used when log_file_size is not set. the default is 1000000 (10MiB) in the code if not set here. +; only be used when log_file_size is not set. the default is 10000000 (10MiB) in the code if not set here. log_file_size_bytes = 100000 pid_file = /var/run/user/1000/linspector.pid ; plugins separated by ','. no whitespaces allowed! not case sensitive.