]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
LOG_ERROR -> LOG_ERR
authorEvan Prodromou <evan@prodromou.name>
Sat, 13 Sep 2008 16:11:07 +0000 (12:11 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sat, 13 Sep 2008 16:11:07 +0000 (12:11 -0400)
darcs-hash:20080913161107-84dde-30b694455d509a7ec2d12e8418f54ce695aa0993.gz

lib/xmppqueuehandler.php
scripts/jabberqueuehandler.php
scripts/publicqueuehandler.php

index ce82c9a46981c61af2275da65544b7cc1b370cb3..8e0db6f31e887add2597ad51ddf52d87a366c5b7 100644 (file)
@@ -53,8 +53,8 @@ class XmppQueueHandler extends QueueHandler {
                try {
                        $this->conn->processTime($timeout);
                } catch (XMPPHP_Exception $e) {
-                       $this->log(LOG_ERROR, "Got an XMPPHP_Exception: " . $e->getMessage());
-                       exit(1);
+                       $this->log(LOG_ERR, "Got an XMPPHP_Exception: " . $e->getMessage());
+                       die($e->getMessage());
                }
        }
        
index 24f818a0c56fdfd92ebf8228eb569499023493d4..59cdb94ad72e28dd0e0b6dd861f72ddf51fcbb01 100755 (executable)
@@ -45,7 +45,7 @@ class JabberQueueHandler extends XmppQueueHandler {
                try {
                        return jabber_broadcast_notice($notice);
                } catch (XMPPHP_Exception $e) {
-                       $this->log(LOG_ERROR, "Got an XMPPHP_Exception: " . $e->getMessage());
+                       $this->log(LOG_ERR, "Got an XMPPHP_Exception: " . $e->getMessage());
                        exit(1);
                }
        }
index dde6a3427db005b98732a5cb8dac921951b7be26..b1ae1d581dbcdda2ec57039183a264d4bbd3d5ac 100755 (executable)
@@ -43,8 +43,8 @@ class PublicQueueHandler extends XmppQueueHandler {
                try {
                        return jabber_public_notice($notice);
                } catch (XMPPHP_Exception $e) {
-                       $this->log(LOG_ERROR, "Got an XMPPHP_Exception: " . $e->getMessage());
-                       exit(1);
+                       $this->log(LOG_ERR, "Got an XMPPHP_Exception: " . $e->getMessage());
+                       die($e->getMessage());
                }
        }
 }