1
0

standardized logging base with ISO8601, UTC, rotating file logs, and more!

This commit is contained in:
cluelessperson
2019-03-14 14:56:22 -07:00
committed by SomberNight
parent ec6f4e9f1c
commit 4d64e132d7
2 changed files with 142 additions and 0 deletions

View File

@@ -86,6 +86,9 @@ from electrum.util import set_verbosity, InvalidPassword
from electrum.commands import get_parser, known_commands, Commands, config_variables
from electrum import daemon
from electrum import keystore
import electrum.logging
from electrum.logging import electrum_logger
# get password routine
def prompt_password(prompt, confirm=True):
@@ -336,6 +339,8 @@ if __name__ == '__main__':
# todo: defer this to gui
config = SimpleConfig(config_options)
electrum.logging.configure_logging(config)
cmdname = config.get('cmd')
if config.get('testnet'):