From aeba531aa8a1af5cb6a82a650f2e99c9d0748ca9 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 25 Jun 2025 16:46:16 +0000 Subject: [PATCH] logging: keep more log files by default To reduce chance an important log file gets lost due to the user restarting the app a couple times. Perhaps we should make this smarter and cap based on bytes size of folder, instead of number of files. --- electrum/simple_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/simple_config.py b/electrum/simple_config.py index 63404a5bc..d497bab11 100644 --- a/electrum/simple_config.py +++ b/electrum/simple_config.py @@ -863,7 +863,7 @@ Warning: setting this to too low will result in lots of payment failures."""), short_desc=lambda: _("Write logs to file"), long_desc=lambda: _('Debug logs can be persisted to disk. These are useful for troubleshooting.'), ) - LOGS_NUM_FILES_KEEP = ConfigVar('logs_num_files_keep', default=10, type_=int) + LOGS_NUM_FILES_KEEP = ConfigVar('logs_num_files_keep', default=30, type_=int) GUI_ENABLE_DEBUG_LOGS = ConfigVar('gui_enable_debug_logs', default=False, type_=bool) LOCALIZATION_LANGUAGE = ConfigVar( 'language', default="", type_=str,