Made Settings debug log less verbose

This commit is contained in:
Micah Lee 2017-05-16 13:01:57 -07:00
parent 4242097d7d
commit 18ba940669
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -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: