mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
Fix default log path in config form.
This commit is contained in:
parent
54162d9538
commit
773528342f
@ -124,7 +124,7 @@ class LoggingForm extends Form
|
|||||||
'helptext' => 'The logfile to write the icingaweb debug logs to.'
|
'helptext' => 'The logfile to write the icingaweb debug logs to.'
|
||||||
. 'The webserver must be able to write at this location',
|
. 'The webserver must be able to write at this location',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'value' => $logging->get('target', '/var/log/icingaweb.log')
|
'value' => $logging->get('target', $this->getBaseDir() . '/var/log/icingaweb.log')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$txtLogPath->addValidator(new WritablePathValidator());
|
$txtLogPath->addValidator(new WritablePathValidator());
|
||||||
@ -158,7 +158,7 @@ class LoggingForm extends Form
|
|||||||
'label' => 'Debug Log Path',
|
'label' => 'Debug Log Path',
|
||||||
'required' => $this->shouldDisplayDebugLog($debug),
|
'required' => $this->shouldDisplayDebugLog($debug),
|
||||||
'condition' => $this->shouldDisplayDebugLog($debug),
|
'condition' => $this->shouldDisplayDebugLog($debug),
|
||||||
'value' => $debug->get('target', $this->getBaseDir() . '/var/log/icinga2.debug.log'),
|
'value' => $debug->get('target', $this->getBaseDir() . '/var/log/icingaweb2.debug.log'),
|
||||||
'helptext' => 'Set the path to the debug log'
|
'helptext' => 'Set the path to the debug log'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user