Fix default log path in config form.

This commit is contained in:
Michael Friedrich 2014-03-09 15:57:50 +01:00
parent 54162d9538
commit 773528342f

View File

@ -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'
) )
); );