Use our own logging, not aiorpcX's
This commit is contained in:
parent
611c7c39f4
commit
7b602b36eb
@ -37,8 +37,8 @@ class PeerSession(ClientSession):
|
|||||||
self.peer_mgr = peer_mgr
|
self.peer_mgr = peer_mgr
|
||||||
self.kind = kind
|
self.kind = kind
|
||||||
self.timeout = 20 if self.peer.is_tor else 10
|
self.timeout = 20 if self.peer.is_tor else 10
|
||||||
context = {'conn_id': f'{host}'}
|
self.logger = class_logger(__name__, self.__class__.__name__)
|
||||||
self.logger = ConnectionLogger(self.logger, context)
|
self.logger = ConnectionLogger(self.logger, {'conn_id': f'{host}'})
|
||||||
|
|
||||||
def connection_made(self, transport):
|
def connection_made(self, transport):
|
||||||
super().connection_made(transport)
|
super().connection_made(transport)
|
||||||
|
|||||||
@ -51,6 +51,7 @@ class SessionBase(ServerSession):
|
|||||||
|
|
||||||
def __init__(self, controller, kind):
|
def __init__(self, controller, kind):
|
||||||
super().__init__(rpc_protocol=JSONRPCAutoDetect)
|
super().__init__(rpc_protocol=JSONRPCAutoDetect)
|
||||||
|
self.logger = util.class_logger(__name__, self.__class__.__name__)
|
||||||
self.kind = kind # 'RPC', 'TCP' etc.
|
self.kind = kind # 'RPC', 'TCP' etc.
|
||||||
self.controller = controller
|
self.controller = controller
|
||||||
self.bp = controller.bp
|
self.bp = controller.bp
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user