From 5ff5edf7691005bea21511718c4d753a4e06ce9b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 22 Jun 2021 18:51:02 +0200 Subject: [PATCH] outposts: improve logging Signed-off-by: Jens Langhammer --- authentik/outposts/channels.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/authentik/outposts/channels.py b/authentik/outposts/channels.py index efd781f2c..a9aed6200 100644 --- a/authentik/outposts/channels.py +++ b/authentik/outposts/channels.py @@ -67,11 +67,6 @@ class OutpostConsumer(AuthJsonConsumer): self.accept() self.outpost = outpost.first() self.last_uid = 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): @@ -108,6 +103,11 @@ class OutpostConsumer(AuthJsonConsumer): outpost=self.outpost.name, uid=self.last_uid, ).inc() + LOGGER.debug( + "added outpost instace to cache", + outpost=self.outpost, + instance_uuid=self.last_uid, + ) self.first_msg = True if msg.instruction == WebsocketMessageInstruction.HELLO: