move log out of root
This commit is contained in:
parent
1518deee87
commit
a312ad9095
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@
|
||||
/config.json.prod
|
||||
keys.txt
|
||||
/.phpunit.cache
|
||||
/var/log/*
|
||||
|
3
TODO
3
TODO
@ -1,3 +1,6 @@
|
||||
API Endpint cleanup
|
||||
API Endpint for version
|
||||
CLI Version check
|
||||
check keytype of panel/bindApi
|
||||
more UNIT tests
|
||||
|
||||
|
@ -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",
|
||||
|
@ -2195,7 +2195,7 @@ class CLIController
|
||||
|
||||
private function cronRun()
|
||||
{
|
||||
$this->logger->debug(message: 'cronRun()');
|
||||
$this->logger->info(message: 'cronRun()');
|
||||
$this->domainsUpdate();
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user