Skip to content

Commit

Permalink
Improve signal/noise ratio in cron errors
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed May 28, 2017
1 parent 67d77b2 commit bae7944
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/midcom/baseclasses/components/cron/handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public function print_error($message, $var = null)
echo "ERROR ({$class}): {$message}\n";
debug_add($message, MIDCOM_LOG_ERROR);
if (!is_null($var)) {
print_r($var);
debug_print_r('Passed argument: ', $var);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/midcom/services/at/cron/check.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function _on_execute()
$mret = $interface->$method($args, $this);

if ($mret !== true) {
$error = get_class($interface) . "->{$method}(\$args, \$this) returned '{$mret}', errstr: " . midcom_connection::get_error_string();
$error = get_class($interface) . '->' . $method . '(' . json_encode($args) . ", \$this) returned '{$mret}', errstr: " . midcom_connection::get_error_string();
$this->handle_error($entry, $error, $args);
} else {
midcom::get()->auth->request_sudo('midcom.services.at');
Expand Down

0 comments on commit bae7944

Please sign in to comment.