Add useful information in error logs.
This commit is contained in:
parent
211598633f
commit
a368246de7
@ -94,11 +94,11 @@ def parse_irc_messages(irc_msg: str) -> Tuple[str, str, str]:
|
|||||||
try:
|
try:
|
||||||
target = irc_msg.split(":")[1].split(" ")[2]
|
target = irc_msg.split(":")[1].split(" ")[2]
|
||||||
except Exception:
|
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
|
target = None
|
||||||
return " ".join(irc_msg.split()), actor, target
|
return " ".join(irc_msg.split()), actor, target
|
||||||
except Exception:
|
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
|
return None, None, None
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user