Always enable asynchronous logging

This patch always enables asynchronous logging which slows
down the system a lot on slow storage and some virtual environments.

It also removes the configuration options in the web
user interface, since this is not configurable any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2016-11-29 12:18:41 +00:00
parent b7f2fe819b
commit adb11e90df
14 changed files with 31 additions and 48 deletions

View File

@@ -32,9 +32,7 @@ $logsettings{'LOGWATCH_LEVEL'} = 'Low';
$logsettings{'LOGWATCH_KEEP'} = '56';
my @VS = ('15','50','100','150','250','500');
$logsettings{'ENABLE_REMOTELOG'} = 'off';
$logsettings{'ENABLE_ASYNCLOG'} = 'off';
$logsettings{'REMOTELOG_ADDR'} = '';
$logsettings{'VARMESSAGES'} = 'cron.none;daemon.*;local0.*;local2.*;*.info;mail.none;authpriv.*';
$logsettings{'ACTION'} = '';
&Header::getcgihash(\%logsettings);
@@ -67,10 +65,6 @@ if ($logsettings{'ACTION'} eq $Lang::tr{'save'})
&General::readhash("${General::swroot}/logging/settings", \%logsettings);
$checked{'ENABLE_ASYNCLOG'}{'off'} = '';
$checked{'ENABLE_ASYNCLOG'}{'on'} = '';
$checked{'ENABLE_ASYNCLOG'}{$logsettings{'ENABLE_ASYNCLOG'}} = "checked='checked'";
$checked{'ENABLE_REMOTELOG'}{'off'} = '';
$checked{'ENABLE_REMOTELOG'}{'on'} = '';
$checked{'ENABLE_REMOTELOG'}{$logsettings{'ENABLE_REMOTELOG'}} = "checked='checked'";
@@ -151,20 +145,6 @@ END
;
&Header::closebox();
&Header::openbox('100%', 'left', $Lang::tr{'messages logging'});
print <<END
<table width='100%'>
<tr>
<td class='base' colspan='2'><input type='checkbox' name='ENABLE_ASYNCLOG' $checked{'ENABLE_ASYNCLOG'}{'on'} />$Lang::tr{'Async logging enabled'}</td>
<tr>
</tr>
<td>$Lang::tr{'log var messages'}</td><td><input type='text' name='VARMESSAGES' size='50' value='$logsettings{'VARMESSAGES'}' /></td>
</tr>
</table>
END
;
&Header::closebox();
print <<END
<div align='center'>
<table width='60%'>