Remove verbose autobahn logging from substrate.
removes logging from imported websocket libraries
@@ -25,6 +25,12 @@ import re
from autobahn.asyncio.websocket import WebSocketClientProtocol, WebSocketClientFactory
+# --- Removes logging from autobahn for message level < CRITICAL
+import logging
+for key in logging.Logger.manager.loggerDict.keys():
+ if "autobahn" in str(key):
+ logging.getLogger(key).setLevel(logging.CRITICAL)
+
from scalecodec import ScaleBytes, GenericCall
from scalecodec.base import ScaleDecoder, RuntimeConfiguration, RuntimeConfigurationObject
from scalecodec.block import ExtrinsicsDecoder, EventsDecoder, LogDigest, Extrinsic
