From a368246de7f7b42c3e3de27e8cc3fff74774dd75 Mon Sep 17 00:00:00 2001 From: pitchum Date: Wed, 10 May 2023 14:57:47 +0200 Subject: [PATCH] Add useful information in error logs. --- redminebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redminebot.py b/redminebot.py index 38ac246..5ab4415 100755 --- a/redminebot.py +++ b/redminebot.py @@ -94,11 +94,11 @@ def parse_irc_messages(irc_msg: str) -> Tuple[str, str, str]: try: target = irc_msg.split(":")[1].split(" ")[2] except Exception: - LOGGER.exception("Exception raised to irc message parsing") + LOGGER.warning("Failed to parse target for actor='{}' in the following incoming irc message: {}".format(actor, irc_msg)) target = None return " ".join(irc_msg.split()), actor, target except Exception: - LOGGER.exception("Exception raised to irc message parsing") + LOGGER.exception("Failed to parse the following incoming irc message: {}".format(irc_msg)) return None, None, None