outposts: improve logging
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
939889e0ec
commit
5ff5edf769
|
@ -67,11 +67,6 @@ class OutpostConsumer(AuthJsonConsumer):
|
||||||
self.accept()
|
self.accept()
|
||||||
self.outpost = outpost.first()
|
self.outpost = outpost.first()
|
||||||
self.last_uid = self.channel_name
|
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
|
# pylint: disable=unused-argument
|
||||||
def disconnect(self, close_code):
|
def disconnect(self, close_code):
|
||||||
|
@ -108,6 +103,11 @@ class OutpostConsumer(AuthJsonConsumer):
|
||||||
outpost=self.outpost.name,
|
outpost=self.outpost.name,
|
||||||
uid=self.last_uid,
|
uid=self.last_uid,
|
||||||
).inc()
|
).inc()
|
||||||
|
LOGGER.debug(
|
||||||
|
"added outpost instace to cache",
|
||||||
|
outpost=self.outpost,
|
||||||
|
instance_uuid=self.last_uid,
|
||||||
|
)
|
||||||
self.first_msg = True
|
self.first_msg = True
|
||||||
|
|
||||||
if msg.instruction == WebsocketMessageInstruction.HELLO:
|
if msg.instruction == WebsocketMessageInstruction.HELLO:
|
||||||
|
|
Reference in New Issue