From 01b075117fb225d7d69a30e91efeeeefc685eef6 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Mon, 20 Jul 2020 17:12:59 +0200 Subject: [PATCH] summary: set thread loglevel to just warn using level error caused the testframework to fail on non-essential price or availability thread log messages. likely caused by the test runner not being able to query the bitstamp API. --- summary/summary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/summary/summary.py b/summary/summary.py index a035844..280d413 100755 --- a/summary/summary.py +++ b/summary/summary.py @@ -79,7 +79,7 @@ class PeerThread(threading.Thread): peerstate[pid]['connected'] = False peerstate[pid]['availability'] = 0.0 * alpha + peerstate[pid]['availability'] * beta except Exception as ex: - plugin.log("[PeerThread] " + str(ex), 'error') + plugin.log("[PeerThread] " + str(ex), 'warn') time.sleep(interval) @@ -94,7 +94,7 @@ class PriceThread(threading.Thread): r = requests.get('https://www.bitstamp.net/api/v2/ticker/BTC{}'.format(plugin.currency)) plugin.fiat_per_btc = float(r.json()['last']) except Exception as ex: - plugin.log("[PriceThread] " + str(ex), 'error') + plugin.log("[PriceThread] " + str(ex), 'warn') # Six hours is more than often enough for polling time.sleep(6*3600)