mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
Fix logging configuration form
This commit is contained in:
parent
75c359bfb0
commit
4e77ea2f88
@ -128,7 +128,7 @@ class LoggingForm extends Form
|
|||||||
'helptext' => t('The Syslog facility to utilize.'),
|
'helptext' => t('The Syslog facility to utilize.'),
|
||||||
'value' => $loggingConfig->get('facility', 'LOG_USER'),
|
'value' => $loggingConfig->get('facility', 'LOG_USER'),
|
||||||
'multiOptions' => array(
|
'multiOptions' => array(
|
||||||
'LOG_USER'
|
'LOG_USER' => 'LOG_USER'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -167,9 +167,11 @@ class LoggingForm extends Form
|
|||||||
switch ($values['logging_type'])
|
switch ($values['logging_type'])
|
||||||
{
|
{
|
||||||
case 'file':
|
case 'file':
|
||||||
|
$cfg['logging']['type'] = 'file';
|
||||||
$cfg['logging']['target'] = $values['logging_target'];
|
$cfg['logging']['target'] = $values['logging_target'];
|
||||||
break;
|
break;
|
||||||
case 'syslog':
|
case 'syslog':
|
||||||
|
$cfg['logging']['type'] = 'syslog';
|
||||||
$cfg['logging']['application'] = $values['logging_application'];
|
$cfg['logging']['application'] = $values['logging_application'];
|
||||||
$cfg['logging']['facility'] = $values['logging_facility'];
|
$cfg['logging']['facility'] = $values['logging_facility'];
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user