Currently a logging error in the form of --- Logging error ---
happens when an error is logged in the _on_data
helper.
Fix it by properly logging the error.
Also, treat pylint errors as errors, to avoid this problem in the future.
Can be tested by running p2p_addrv2_relay.py
with the following example diff:
0diff --git a/test/functional/test_framework/p2p.py b/test/functional/test_framework/p2p.py
1index 523e1bd068..0f1eb29d13 100755
2--- a/test/functional/test_framework/p2p.py
3+++ b/test/functional/test_framework/p2p.py
4@@ -137,7 +137,7 @@ MESSAGEMAP = {
5 b"notfound": msg_notfound,
6 b"ping": msg_ping,
7 b"pong": msg_pong,
8- b"sendaddrv2": msg_sendaddrv2,
9+ #b"sendaddrv2": msg_sendaddrv2,
10 b"sendcmpct": msg_sendcmpct,
11 b"sendheaders": msg_sendheaders,
12 b"sendtxrcncl": msg_sendtxrcncl,