mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/acme-client: fix PHP error; don't hide useful messages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user