Renamed "debugHandler" to "logger" to be more specific
Signed-off-by: Florian Aders <eleras@froxlor.org>
This commit is contained in:
@@ -32,14 +32,14 @@ class lescript
|
|||||||
|
|
||||||
private $webRootDir;
|
private $webRootDir;
|
||||||
|
|
||||||
private $debugHandler;
|
private $logger;
|
||||||
private $client;
|
private $client;
|
||||||
private $accountKey;
|
private $accountKey;
|
||||||
|
|
||||||
public function __construct($webRootDir, $debugHandler)
|
public function __construct($webRootDir, $logger)
|
||||||
{
|
{
|
||||||
$this->webRootDir = $webRootDir;
|
$this->webRootDir = $webRootDir;
|
||||||
$this->debugHandler = $debugHandler;
|
$this->logger = $logger;
|
||||||
if (Settings::Get('system.letsencryptca') == 'production') {
|
if (Settings::Get('system.letsencryptca') == 'production') {
|
||||||
$ca = 'https://acme-v01.api.letsencrypt.org';
|
$ca = 'https://acme-v01.api.letsencrypt.org';
|
||||||
} else {
|
} else {
|
||||||
@@ -370,7 +370,7 @@ keyUsage = nonRepudiation, digitalSignature, keyEncipherment');
|
|||||||
|
|
||||||
protected function log($message)
|
protected function log($message)
|
||||||
{
|
{
|
||||||
$this->debugHandler->logAction(CRON_ACTION, LOG_INFO, "letsencrypt " . $message);
|
$this->logger->logAction(CRON_ACTION, LOG_INFO, "letsencrypt " . $message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user