Adjust some log levels

kivy_mainline_and_py3.8
Tyler Goodlet 2018-04-20 11:41:23 -04:00
parent 063dfad5b4
commit 6a6f773477
3 changed files with 3 additions and 2 deletions

View File

@ -307,7 +307,7 @@ async def quoter(client: Client, tickers: [str]):
new, current = set(tickers), set(t2ids.keys())
if new != current:
# update ticker ids cache
log.info(f"Tickers set changed {new - current}")
log.debug(f"Tickers set changed {new - current}")
t2ids = await client.tickers2ids(tickers)
ids = ','.join(map(str, t2ids.values()))

View File

@ -171,7 +171,7 @@ def watch(loglevel, broker, rate, name):
try:
trio.run(main)
except OSError as oserr:
log.error(oserr)
log.warn(oserr)
log.info("Spawning local broker-daemon...")
child = Process(
target=run,

View File

@ -394,6 +394,7 @@ async def _async_main(name, client, tickers, brokermod, rate):
async with trio.open_nursery() as nursery:
# get first quotes response
log.debug("Waiting on first quote...")
quotes = await client.recv()
first_quotes = [
brokermod.format_quote(quote, symbol_data=sd)[0]