mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/acme-client: fix log severity, closes #3955
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user