summary: logs PeerThred activity to debug

This will eliminate a potential flakyness of the tests
because we can use that log as a marker to wait for the PeerThread.
This commit is contained in:
Michael Schmoock
2021-06-24 11:48:02 +02:00
parent 5f0fce5820
commit b862247e2b
2 changed files with 10 additions and 8 deletions

View File

@@ -46,6 +46,7 @@ class PeerThread(threading.Thread):
rpcpeers = plugin.rpc.listpeers()
trace_availability(plugin, rpcpeers)
plugin.persist.sync()
plugin.log("[PeerThread] Peerstate availability persisted and synced. Sleeping now..." , 'debug')
time.sleep(plugin.avail_interval)
except Exception as ex:
plugin.log("[PeerThread] " + str(ex), 'warn')