|
@ -18,9 +18,8 @@ from server.controller import Controller |
|
|
|
|
|
|
|
|
def main(): |
|
|
def main(): |
|
|
'''Set up logging and run the server.''' |
|
|
'''Set up logging and run the server.''' |
|
|
logging.basicConfig(level=logging.INFO, |
|
|
log_fmt = Env.default('LOG_FORMAT', '%(levelname)s:%(name)s:%(message)s') |
|
|
format='%(asctime)s %(levelname)-7s %(message)-100s ' |
|
|
logging.basicConfig(level=logging.INFO, format=log_fmt) |
|
|
'[%(filename)s:%(lineno)d]') |
|
|
|
|
|
logging.info('ElectrumX server starting') |
|
|
logging.info('ElectrumX server starting') |
|
|
try: |
|
|
try: |
|
|
controller = Controller(Env()) |
|
|
controller = Controller(Env()) |
|
|