s/LOG_ERROR/LOG_ERR/
This commit is contained in:
parent
7f1ce07e9f
commit
7adf1c99fc
|
@ -76,7 +76,7 @@ class Queue_item extends Managed_DataObject
|
||||||
common_log(LOG_DEBUG, 'claim succeeded.');
|
common_log(LOG_DEBUG, 'claim succeeded.');
|
||||||
return $qi;
|
return $qi;
|
||||||
} else {
|
} 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;
|
$qi = null;
|
||||||
|
|
|
@ -77,7 +77,7 @@ abstract class SpawningDaemon extends Daemon
|
||||||
for ($i = 1; $i <= $this->threads; $i++) {
|
for ($i = 1; $i <= $this->threads; $i++) {
|
||||||
$pid = pcntl_fork();
|
$pid = pcntl_fork();
|
||||||
if ($pid < 0) {
|
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);
|
exit(1);
|
||||||
} else if ($pid == 0) {
|
} else if ($pid == 0) {
|
||||||
$this->initAndRunChild($i);
|
$this->initAndRunChild($i);
|
||||||
|
@ -113,7 +113,7 @@ abstract class SpawningDaemon extends Daemon
|
||||||
|
|
||||||
$pid = pcntl_fork();
|
$pid = pcntl_fork();
|
||||||
if ($pid < 0) {
|
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) {
|
} else if ($pid == 0) {
|
||||||
$this->initAndRunChild($i);
|
$this->initAndRunChild($i);
|
||||||
} else {
|
} else {
|
||||||
|
@ -141,7 +141,7 @@ abstract class SpawningDaemon extends Daemon
|
||||||
$this->parentWriter = $sockets[0];
|
$this->parentWriter = $sockets[0];
|
||||||
$this->parentReader = $sockets[1];
|
$this->parentReader = $sockets[1];
|
||||||
} else {
|
} else {
|
||||||
$this->log(LOG_ERROR, "Couldn't create inter-process sockets");
|
$this->log(LOG_ERR, "Couldn't create inter-process sockets");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user