]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
s/LOG_ERROR/LOG_ERR/
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 31 Dec 2015 12:04:50 +0000 (13:04 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 31 Dec 2015 12:04:50 +0000 (13:04 +0100)
classes/Queue_item.php
lib/spawningdaemon.php

index 2979539b16705fe78053cd8375c53c861dd799c9..8a2cc87da355b4896bf42e2a6a6463d6b9e8d688 100644 (file)
@@ -76,7 +76,7 @@ class Queue_item extends Managed_DataObject
                 common_log(LOG_DEBUG, 'claim succeeded.');
                 return $qi;
             } else {
-                common_log(LOG_ERROR, 'claim of queue item id= ' . $qi->getID() . ' for transport ' . $qi->transport . ' failed.');
+                common_log(LOG_ERR, 'claim of queue item id= ' . $qi->getID() . ' for transport ' . $qi->transport . ' failed.');
             }
         }
         $qi = null;
index ea09b6fb2f3016f67553cc683b254b537c9da1f6..732237403dfa49cd75450f81120e7378f9ad71cb 100644 (file)
@@ -77,7 +77,7 @@ abstract class SpawningDaemon extends Daemon
         for ($i = 1; $i <= $this->threads; $i++) {
             $pid = pcntl_fork();
             if ($pid < 0) {
-                $this->log(LOG_ERROR, "Couldn't fork for thread $i; aborting\n");
+                $this->log(LOG_ERR, "Couldn't fork for thread $i; aborting\n");
                 exit(1);
             } else if ($pid == 0) {
                 $this->initAndRunChild($i);
@@ -113,7 +113,7 @@ abstract class SpawningDaemon extends Daemon
 
                     $pid = pcntl_fork();
                     if ($pid < 0) {
-                        $this->log(LOG_ERROR, "Couldn't fork to respawn thread $i; aborting thread.\n");
+                        $this->log(LOG_ERR, "Couldn't fork to respawn thread $i; aborting thread.\n");
                     } else if ($pid == 0) {
                         $this->initAndRunChild($i);
                     } else {
@@ -141,7 +141,7 @@ abstract class SpawningDaemon extends Daemon
             $this->parentWriter = $sockets[0];
             $this->parentReader = $sockets[1];
         } else {
-            $this->log(LOG_ERROR, "Couldn't create inter-process sockets");
+            $this->log(LOG_ERR, "Couldn't create inter-process sockets");
             exit(1);
         }
     }