mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Made Settings debug log less verbose
This commit is contained in:
parent
4242097d7d
commit
18ba940669
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user