From d99451b45cad6ac4c45b8e93b21210a63a9e494c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 11 Mar 2021 17:50:57 +0100 Subject: [PATCH] outposts: improve logs for outpost connection --- authentik/outposts/channels.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/authentik/outposts/channels.py b/authentik/outposts/channels.py index 7ad5b0dfa..d104e1f16 100644 --- a/authentik/outposts/channels.py +++ b/authentik/outposts/channels.py @@ -55,13 +55,21 @@ class OutpostConsumer(AuthJsonConsumer): OutpostState( uid=self.channel_name, last_seen=datetime.now(), _outpost=self.outpost ).save(timeout=OUTPOST_HELLO_INTERVAL * 1.5) - LOGGER.debug("added channel to cache", channel_name=self.channel_name) + LOGGER.debug( + "added outpost instace to cache", + outpost=self.outpost, + channel_name=self.channel_name, + ) # pylint: disable=unused-argument def disconnect(self, close_code): if self.outpost: OutpostState.for_channel(self.outpost, self.channel_name).delete() - LOGGER.debug("removed channel from cache", channel_name=self.channel_name) + LOGGER.debug( + "removed outpost instance from cache", + outpost=self.outpost, + channel_name=self.channel_name, + ) def receive_json(self, content: Data): msg = from_dict(WebsocketMessage, content)