Decrease verbosity of logging
This commit is contained in:
parent
420f7bc1cb
commit
7006689f21
1 changed files with 2 additions and 1 deletions
|
@ -149,10 +149,11 @@ class NtfyBot(Plugin):
|
||||||
line = await resp.content.readline()
|
line = await resp.content.readline()
|
||||||
# convert to string and remove trailing newline
|
# convert to string and remove trailing newline
|
||||||
line = line.decode("utf-8").strip()
|
line = line.decode("utf-8").strip()
|
||||||
self.log.debug("Received notification: %s", line)
|
self.log.trace("Received notification: %s", line)
|
||||||
message = json.loads(line)
|
message = json.loads(line)
|
||||||
if message["event"] != "message":
|
if message["event"] != "message":
|
||||||
continue
|
continue
|
||||||
|
self.log.debug("Received message event: %s", line)
|
||||||
# persist the received message id
|
# persist the received message id
|
||||||
await self.db.update_topic_id(topic.id, message["id"])
|
await self.db.update_topic_id(topic.id, message["id"])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue