From 740da49ce1b68164e0674f23edeaa00376374803 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 15 Mar 2021 12:13:28 +0000 Subject: [PATCH] Add similar extra logging for localhost handler * This also adjusts the logging in Session.auth_callback() because it can be called from either protocol. Saying 'edmc://' there is misleading. --- protocol.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocol.py b/protocol.py index cab216db..8afba1b3 100644 --- a/protocol.py +++ b/protocol.py @@ -47,6 +47,7 @@ class GenericProtocolHandler: """Generate an auth event.""" self.lastpayload = url + logger.trace(f'Payload: {self.lastpayload}') if not config.shutting_down: logger.debug('event_generate("<>"') self.master.event_generate('<>', when="tail") @@ -374,6 +375,7 @@ else: # Linux / Run from source def parse(self) -> bool: """Parse a request.""" + logger.trace(f'Got message on path: {self.path}') url = urllib.parse.unquote(self.path) if url.startswith('/auth'): logger.debug('Request starts with /auth, sending to protocolhandler.event()')