mirror of
https://github.com/lightningd/plugins.git
synced 2026-08-13 12:33:19 +02:00
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.
This commit is contained in:
parent
14ad827fb8
commit
01b075117f
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue