Log entire access config on exit
parent
f4a66dca47
commit
e45cdf92f0
|
@ -1,14 +1,15 @@
|
|||
"""
|
||||
Broker client-daemons and general back end machinery.
|
||||
Broker clients, daemons and general back end machinery.
|
||||
"""
|
||||
import sys
|
||||
import trio
|
||||
from pprint import pformat
|
||||
from .questrade import serve_forever
|
||||
from ..log import get_console_log
|
||||
|
||||
|
||||
def main() -> None:
|
||||
log = get_console_log('INFO', name='questrade')
|
||||
log = get_console_log('info', name='questrade')
|
||||
argv = sys.argv[1:]
|
||||
|
||||
refresh_token = None
|
||||
|
@ -21,7 +22,4 @@ def main() -> None:
|
|||
except Exception as err:
|
||||
log.exception(err)
|
||||
else:
|
||||
log.info(
|
||||
f"\nLast refresh_token: {client.access_data['refresh_token']}\n"
|
||||
f"Last access_token: {client.access_data['access_token']}\n"
|
||||
)
|
||||
log.debug(f"Exiting with last access info:\n{pformat(client.access_data)}\n")
|
||||
|
|
Loading…
Reference in New Issue