diff --git a/include/class.osticket.php b/include/class.osticket.php
index 75a247c1072a7cf3143c8929a4ef46e13b228d1b..2f06453973fc318c303a76edb18cb5b3195ff745 100644
--- a/include/class.osticket.php
+++ b/include/class.osticket.php
@@ -270,6 +270,10 @@ class osTicket {
             $e->getTraceAsString());
         $error .= nl2br("\n\n---- "._S('Backtrace')." ----\n".$bt);
 
+        // Prevent recursive loops through this code path
+        if (substr_count($bt, __FUNCTION__) > 1)
+            return;
+
         return $this->log(LOG_ERR, $title, $error, $alert);
     }