From 18ba9406693d75a9468e5a1fe3eedc270623174d Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Tue, 16 May 2017 13:01:57 -0700 Subject: [PATCH] Made Settings debug log less verbose --- onionshare/settings.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/onionshare/settings.py b/onionshare/settings.py index d5d337e3..0eeb5da2 100644 --- a/onionshare/settings.py +++ b/onionshare/settings.py @@ -58,8 +58,6 @@ class Settings(object): If there are any missing settings from self._settings, replace them with their default values. """ - common.log('Settings', 'fill_in_defaults') - for key in self.default_settings: if key not in self._settings: self._settings[key] = self.default_settings[key] @@ -68,8 +66,6 @@ class Settings(object): """ Returns the path of the settings file. """ - common.log('Settings', 'build_filename') - p = platform.system() if p == 'Windows': appdata = os.environ['APPDATA'] @@ -107,12 +103,9 @@ class Settings(object): print(strings._('settings_saved').format(self.filename)) def get(self, key): - common.log('Settings', 'get', 'key={} (val={})'.format(key, self._settings[key])) return self._settings[key] def set(self, key, val): - common.log('Settings', 'set', 'key={}, val={}'.format(key, val)) - # If typecasting int values fails, fallback to default values if key == 'control_port_port' or key == 'socks_port': try: