Skip to content

Commit

Permalink
tweak notification logs
Browse files Browse the repository at this point in the history
  • Loading branch information
cdzombak committed May 24, 2024
1 parent f4a45d9 commit d808fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ntfy.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def _run(self):

while True:
n: Notification = self._input_queue.get()
logger.debug("received notification: " + n.title())
logger.debug("received notification: " + n.message())

if isinstance(n, ObjectNotification):
if self._suppress(logger, n):
Expand Down Expand Up @@ -249,7 +249,7 @@ def _run(self):
headers=headers,
timeout=self._config.req_timeout_s,
)
logger.info(f"notification '{n.title()}' sent")
logger.info(f"notification '{n.message()}' sent")
except requests.RequestException as e:
logger.error(f"error sending notification: {e}")

Expand Down

0 comments on commit d808fbe

Please sign in to comment.