Commit 1c7033ea authored by Martin Matějek's avatar Martin Matějek

Fix some logging calls

parent 14875a2a
......@@ -60,7 +60,6 @@ class Api:
rendered = self.notifications.get_rendered(msgid, media_type, lang, force_media_type)
if not rendered:
logger.debug("Notification cannot be rendered in media type '%s'", media_type)
raise MediaTypeNotAvailableException("Notification does not have media type '{}'".format(media_type))
return rendered
......@@ -127,4 +126,4 @@ class Api:
raise NoSuchNotificationException("{}".format(msgid))
raise NoSuchNotificationException("Notification ID '{}' does not exist".format(msgid))
......@@ -67,7 +67,7 @@ class NotificationStorage:
def valid_id(self, msgid):
"""Check if msgid is valid and message with that id exists"""
if msgid not in self.notifications and msgid not in self.shortid_map:
logger.warning("Notification id is invalid - notification does not exist")
logger.debug("Notification ID '%s' does not exist", msgid)
return False
return True
......@@ -29,9 +29,7 @@ class Plugin:
for t in templates:
self.templates[t['type']] = t
logger.debug("%s", notifications)
for n in notifications:
logger.debug("concrete notif: %s", n)
self.notification_types[n['name']] = n
......@@ -82,5 +82,5 @@ class Supervisor:
return exit_code
def timeout_handler(self, signum, frame):"Terminating process due to timeout")
logger.warning("Terminating process due to timeout")
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment