Skip to content

Commit

Permalink
move logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Jun 14, 2024
1 parent 2a931c9 commit 4abdb12
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions evrec/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,11 @@ async def run(self):
await client.subscribe(self.settings.mqtt_topic_read)

async for message in client.messages:
logger.debug("Received message on %s", message.topic)
try:
jws = JWS()
jws.deserialize(message.payload)
key = verify_jws_with_keys(jws, self.clients_keys)
logger.info(
"Verified message from %s on %s", key.kid, message.topic
)
if self.settings.mqtt_topic_write:
await self.handle_payload(client, message, jws, key)
else:
Expand Down

0 comments on commit 4abdb12

Please sign in to comment.