From 6a6f773477b6c19e0bbd17d5a097df5363edaae0 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 20 Apr 2018 11:41:23 -0400 Subject: [PATCH] Adjust some log levels --- piker/brokers/questrade.py | 2 +- piker/cli.py | 2 +- piker/ui/watchlist.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/piker/brokers/questrade.py b/piker/brokers/questrade.py index 323cbab6..3f0ebbd7 100644 --- a/piker/brokers/questrade.py +++ b/piker/brokers/questrade.py @@ -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())) diff --git a/piker/cli.py b/piker/cli.py index 79bbcb61..a383eb35 100644 --- a/piker/cli.py +++ b/piker/cli.py @@ -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, diff --git a/piker/ui/watchlist.py b/piker/ui/watchlist.py index be21dd85..a0944ffb 100644 --- a/piker/ui/watchlist.py +++ b/piker/ui/watchlist.py @@ -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]