security/acme-client: fix PHP error; don't hide useful messages

This commit is contained in:
Frank Wall
2024-07-28 14:02:00 +02:00
parent 1d5bb7781d
commit f60f835cca
2 changed files with 3 additions and 3 deletions
@@ -228,7 +228,7 @@ class LeAccount extends LeCommon
$this->fixConfig();
// Update account status.
LeUtils::log_debug('account registration successful for ' . $this->config->name);
LeUtils::log('account registration successful for ' . $this->config->name);
$this->setStatus(200);
} else {
LeUtils::log_debug('account already registered: ' . (string)$this->config->name, $this->debug);
@@ -209,10 +209,10 @@ class LeUtils
// Get exit code
$result = proc_close($proc);
log_debug(sprintf("AcmeClient: The shell command returned exit code '%d': '%s'", $result, $proc_cmd));
self::log(sprintf("AcmeClient: The shell command returned exit code '%d': '%s'", $result, $proc_cmd));
return($result);
} else {
log_error(sprintf("AcmeClient: Unable to prepare shell command '%s'", $proc_cmd));
self::log_error(sprintf("AcmeClient: Unable to prepare shell command '%s'", $proc_cmd));
return(-999);
}
}