Closed om26er closed 2 years ago
Proxy worker logs are a bit noise, we should move some of them to debug level.
debug
Here is one example, below log basically appears when a client publishes an event
2022-03-21T21:05:58+0500 [Proxy 76124] <crossbar.worker.proxy.ProxyFrontendSession.onOpen> Proxy frontend session connected from peer tcp4:127.0.0.1:51780 2022-03-21T21:05:58+0500 [Proxy 76124] <crossbar.worker.proxy.ProxyFrontendSession._process_Hello>(msg=Hello(realm=omer-home, roles={'subscriber': subscriber(publisher_identification=True, pattern_based_subscription=True), 'callee': callee(caller_identification=True, pattern_based_registration=True, shared_registration=True, call_timeout=True, call_canceling=True, progressive_call_results=True), 'caller': caller(caller_identification=True, call_timeout=True, call_canceling=True, progressive_call_results=True), 'publisher': publisher(publisher_identification=True, subscriber_blackwhite_listing=True, publisher_exclusion=True)}, authmethods=['cryptosign'], authid=realm-omer, authrole=None, authextra={'pubkey': '8499e0caab9118436d14397e7736bfd51a21e3f76377190ecf72ed880f315f18'}, resumable=None, resume_session=None, resume_token=None)) 2022-03-21T21:05:58+0500 [Proxy 76124] PendingAuthCryptosign.hello(realm="omer-home", details=HelloDetails(realm=<omer-home>, authmethods=['cryptosign'], authid=<realm-omer>, authrole=<None>, authextra={'pubkey': '8499e0caab9118436d14397e7736bfd51a21e3f76377190ecf72ed880f315f18'}, session_roles={'subscriber': subscriber(publisher_identification=True, pattern_based_subscription=True), 'callee': callee(caller_identification=True, pattern_based_registration=True, shared_registration=True, call_timeout=True, call_canceling=True, progressive_call_results=True), 'caller': caller(caller_identification=True, call_timeout=True, call_canceling=True, progressive_call_results=True), 'publisher': publisher(publisher_identification=True, subscriber_blackwhite_listing=True, publisher_exclusion=True)}, pending_session=8403300128657104, resumable=None, resume_session=None, resume_token=None)) -> on_authenticate_ok(principal={'pubkey': '8499e0caab9118436d14397e7736bfd51a21e3f76377190ecf72ed880f315f18', 'realm': 'omer-home', 'authid': 'realm-omer', 'role': 'owner'}) 2022-03-21T21:05:58+0500 [Proxy 76124] <crossbar.worker.proxy.ProxyFrontendSession._accept> Frontend session accepted (Accept(realm=<omer-home>, authid=<realm-omer>, authrole=<owner>, authmethod=cryptosign, authprovider=function, authextra=None)) - opening proxy backend session ... 2022-03-21T21:05:58+0500 [Proxy 76124] <crossbar.worker.proxy.make_backend_connection>() connecting with config= {'auth': {'cryptosign-proxy': {'type': 'static'}}, 'transport': {'endpoint': {'host': '127.0.0.1', 'port': 9000, 'type': 'tcp'}, 'serializer': 'cbor', 'type': 'rawsocket', 'url': 'ws://localhost'}} 2022-03-21T21:05:58+0500 [Proxy 76124] Starting factory <autobahn.twisted.rawsocket.WampRawSocketClientFactory object at 0x7f2b1c8ffb20> 2022-03-21T21:05:58+0500 [Proxy 76124] <crossbar.worker.proxy.ProxyController.map_backend>: ok, proxy backend session None opened mapping frontend session to realm "omer-home", authrole "owner" 2022-03-21T21:05:58+0500 [Proxy 76124] <crossbar.worker.proxy.ProxyFrontendSession._accept.<locals>._backend_connected.<locals>._on_backend_joined> Ok, proxy backend session 7929345001243589 joined! 2022-03-21T21:05:58+0500 [Proxy 76124] <crossbar.worker.proxy.ProxyController.unmap_backend>: ok, unmapped frontend session 7929345001243589 from backend session 7929345001243589 2022-03-21T21:05:58+0500 [Proxy 76124] <crossbar.worker.proxy.ProxyFrontendSession.onClose>(wasClean=True) 2022-03-21T21:05:58+0500 [Proxy 76124] Stopping factory <autobahn.twisted.rawsocket.WampRawSocketClientFactory object at 0x7f2b1c8ffb20>
fixed
Proxy worker logs are a bit noise, we should move some of them to
debug
level.Here is one example, below log basically appears when a client publishes an event