From 1a562d70aa01d5f56098197bec584542b1134172 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Wed, 29 Mar 2017 11:06:04 -0400 Subject: [PATCH] config to share debug info with lbry devs --- lbrynet/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lbrynet/conf.py b/lbrynet/conf.py index 1dc2b6b3c..a12e7e588 100644 --- a/lbrynet/conf.py +++ b/lbrynet/conf.py @@ -197,6 +197,7 @@ ADJUSTABLE_SETTINGS = { 'run_on_startup': (bool, False), 'run_reflector_server': (bool, False), 'sd_download_timeout': (int, 3), + 'share_debug_info': (bool, True), # whether to share diagnostic info with LBRY 'peer_search_timeout': (int, 3), 'search_servers': (list, ['lighthouse1.lbry.io:50005']), 'search_timeout': (float, 5.0), @@ -388,6 +389,9 @@ class Config(object): del settings_dict['API_INTERFACE'] if 'startup_scripts' in settings_dict: del settings_dict['startup_scripts'] + if 'upload_log' in settings_dict: + settings_dict['share_debug_info'] = settings_dict['upload_log'] + del settings_dict['upload_log'] for key in settings_dict.keys(): if not self._is_valid_setting(key): log.warning('Ignoring invalid conf file setting: %s', key)