Removes unused debug flag

This commit is contained in:
Oleg Silkin 2019-08-23 16:13:51 -04:00 committed by Lex Berezhny
parent f669881849
commit c5b90c0144

View file

@ -391,13 +391,11 @@ class Daemon(metaclass=JSONRPCServerType):
return self._installation_id return self._installation_id
@staticmethod @staticmethod
def log_function_params(fname, debug=False, **params): def log_function_params(fname, **params):
params_passed = [f'{k}: {repr(v)}' for k, v in params.items() if v is not None] params_passed = [f'{k}: {repr(v)}' for k, v in params.items() if v is not None]
logstr = f'{fname}: {{{", ".join(params_passed)}}}' logstr = f'{fname}: {{{", ".join(params_passed)}}}'
if not debug:
log.info(logstr) log.info(logstr)
else:
log.debug(logstr)
def ensure_data_dir(self): def ensure_data_dir(self):
if not os.path.isdir(self.conf.data_dir): if not os.path.isdir(self.conf.data_dir):