summaryrefslogtreecommitdiff
path: root/poezio/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/common.py')
-rw-r--r--poezio/common.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/poezio/common.py b/poezio/common.py
index a39f8145..ba179310 100644
--- a/poezio/common.py
+++ b/poezio/common.py
@@ -16,10 +16,13 @@ import os
import subprocess
import time
import string
+import logging
from slixmpp import JID, InvalidJID, Message
from poezio.poezio_shlex import shlex
+log = logging.getLogger(__name__)
+
def _get_output_of_command(command: str) -> Optional[List[str]]:
"""
@@ -459,4 +462,9 @@ def safeJID(*args, **kwargs) -> JID:
try:
return JID(*args, **kwargs)
except InvalidJID:
+ log.debug(
+ 'safeJID caught an invalidJID exception: %r, %r',
+ args, kwargs,
+ exc_info=True,
+ )
return JID('')