Skip to content

Commit

Permalink
Fix wrong variable names in log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
manu0401 committed Feb 16, 2021
1 parent 85386eb commit f86f46a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions objects/Encoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,6 @@ function exec($cmd, &$output = array(), &$return_val = 0) {
case -1:
$msg = "fork failed";
error_log("id(".$this->getId().") ".$msg);
$obj->msg = $msg;
$this->setStatus("error");
$this->setStatus_obs($msg);
$this->save();
Expand All @@ -620,7 +619,7 @@ function exec($cmd, &$output = array(), &$return_val = 0) {
$return_val = 1;
}
if (pcntl_wifsignaled($status))
error_log("id=(".$encoder_queue_id."), process ".$pid." got signal ".pcntl_wtermsig($status));
error_log("id=(".$this->getId()."), process ".$pid." got signal ".pcntl_wtermsig($status));
$this->setWorker_pid(NULL);
$this->save();
break;
Expand All @@ -631,7 +630,7 @@ function exec($cmd, &$output = array(), &$return_val = 0) {
"LD_LIBRARY_PATH=".getenv("LD_LIBRARY_PATH")
);
pcntl_exec("/bin/sh", $argv, $envp);
error_log("id=(".$encoder_queue_id."), ".$cmd." failed: ".pnctl_strerror(pnctl_get_last_error()));
error_log("id=(".$this->getId()."), ".$cmd." failed: ".pnctl_strerror(pnctl_get_last_error()));
exit(1);
break;
}
Expand Down

0 comments on commit f86f46a

Please sign in to comment.