diff --git a/omemo/__init__.py b/omemo/__init__.py
index 2002451bdcb9a33c057b8e8d81bd1f41e444986b..ea6c643efc60bf502da86bb1fa8db846851d285c 100644
--- a/omemo/__init__.py
+++ b/omemo/__init__.py
@@ -641,10 +641,9 @@ class OmemoPlugin(GajimPlugin):
 
     def print_msg_to_log(self, stanza):
         log.debug('-'*15)
-        stanzastr = str(stanza)
-        for item in re.split("(<.*?>)(<.*?/.*?>)", stanzastr):
-            if item:
-                log.debug(item)
+        stanzastr = '\n' + stanza.__str__(fancy=True)
+        stanzastr = stanzastr[0:-1]
+        log.debug(stanzastr)
         log.debug('-'*15)
 
     @log_calls('OmemoPlugin')