CRM-9484: Log unrecognised message part types to debug log.
authorChris Burgess <chris@giantrobot.co.nz>
Mon, 15 Aug 2016 23:20:29 +0000 (11:20 +1200)
committerChris Burgess <chris@giantrobot.co.nz>
Mon, 15 Aug 2016 23:20:29 +0000 (11:20 +1200)
CRM/Utils/Mail/Incoming.php

index f0d580c570c3447319aa6528c3e9f3b00e7018e1..232d8faeadffc3690cbd34777a10d21390693ee7 100644 (file)
@@ -254,6 +254,7 @@ class CRM_Utils_Mail_Incoming {
    * @return string
    */
   public function formatUnrecognisedPart($part) {
+    CRM_Core_Error::debug_log_message(ts('CRM_Utils_Mail_Incoming: Unable to handle message part of type "%1".', array('%1' => get_class($part))));
     return ts('Unrecognised message part of type "%1".', array('%1' => get_class($part)));
   }