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.'
|
||||
. 'The webserver must be able to write at this location',
|
||||
'required' => true,
|
||||
'value' => $logging->get('target', '/var/log/icingaweb.log')
|
||||
'value' => $logging->get('target', $this->getBaseDir() . '/var/log/icingaweb.log')
|
||||
)
|
||||
);
|
||||
$txtLogPath->addValidator(new WritablePathValidator());
|
||||
|
@ -158,7 +158,7 @@ class LoggingForm extends Form
|
|||
'label' => 'Debug Log Path',
|
||||
'required' => $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'
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue