diff --git a/.gitignore b/.gitignore index c809050..5543338 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ /config.json.prod keys.txt /.phpunit.cache +/var/log/* diff --git a/TODO b/TODO index b157b6e..8074976 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,6 @@ +API Endpint cleanup +API Endpint for version +CLI Version check check keytype of panel/bindApi more UNIT tests diff --git a/composer.json b/composer.json index a330788..a0a67e7 100644 --- a/composer.json +++ b/composer.json @@ -1,8 +1,8 @@ { "name": "24unix/bindapi", "description": "manage Bind9 DNS server via REST API", - "version": "1.0.8", - "build_number": "354", + "version": "1.0.9", + "build_number": "355", "authors": [ { "name": "Micha Espey", diff --git a/src/Controller/CLIController.php b/src/Controller/CLIController.php index a87cfda..12e2bfc 100644 --- a/src/Controller/CLIController.php +++ b/src/Controller/CLIController.php @@ -2195,7 +2195,7 @@ class CLIController private function cronRun() { - $this->logger->debug(message: 'cronRun()'); + $this->logger->info(message: 'cronRun()'); $this->domainsUpdate(); } } diff --git a/src/Service/BindAPI.php b/src/Service/BindAPI.php index dd659fb..b9ce2f4 100755 --- a/src/Service/BindAPI.php +++ b/src/Service/BindAPI.php @@ -38,9 +38,9 @@ class BindAPI $debug = (new ConfigController(quiet: $quiet))->getConfig(configKey: 'debug'); if ($debug) { - $stream = new StreamHandler(stream: dirname(path: __DIR__, levels: 2) . '/bindAPI.log', level: Level::Debug); + $stream = new StreamHandler(stream: dirname(path: __DIR__, levels: 2) . '/var/log/bindAPI.debug', level: Level::Debug); } else { - $stream = new StreamHandler(stream: dirname(path: __DIR__, levels: 2) . '/bindAPI.log', level: Level::Info); + $stream = new StreamHandler(stream: dirname(path: __DIR__, levels: 2) . '/var/log/bindAPI.info', level: Level::Info); } $stream->setFormatter(formatter: $formatter);