security/acme-client: fix log severity, closes #3955

This commit is contained in:
Frank Wall
2024-07-27 22:47:59 +02:00
parent 7ce10697f2
commit 6318a3aea1
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -13,6 +13,7 @@ Plugin Changelog
Fixed:
* fix empty System Log
* avoid unnecessary error log messages (#3860)
* don't log errors for successful commands (#3955)
4.4
@@ -228,7 +228,7 @@ class LeAccount extends LeCommon
$this->fixConfig();
// Update account status.
LeUtils::log_error('account registration successful for ' . $this->config->name);
LeUtils::log_debug('account registration successful for ' . $this->config->name);
$this->setStatus(200);
} else {
LeUtils::log_debug('account already registered: ' . (string)$this->config->name, $this->debug);
@@ -209,7 +209,7 @@ class LeUtils
// Get exit code
$result = proc_close($proc);
log_error(sprintf("AcmeClient: The shell command returned exit code '%d': '%s'", $result, $proc_cmd));
log_debug(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));