cli logger refactor, poetry update (#125)

This commit is contained in:
calle
2023-03-05 03:29:55 +01:00
committed by GitHub
parent fe802c00fe
commit a2cdd002d8
4 changed files with 373 additions and 199 deletions

View File

@@ -93,10 +93,6 @@ def cli(ctx: Context, host: str, walletname: str):
error_str += f'\n\nYou can turn off Tor with this command: echo "TOR=FALSE" >> {env_path}'
raise Exception(error_str)
# configure logger
logger.remove()
logger.add(sys.stderr, level="DEBUG" if DEBUG else "INFO")
ctx.ensure_object(dict)
ctx.obj["HOST"] = host
ctx.obj["WALLET_NAME"] = walletname