diff --git a/ntfy.py b/ntfy.py index caef673..8ad0dca 100644 --- a/ntfy.py +++ b/ntfy.py @@ -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): @@ -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}")