summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_logs_filter.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/status_logs_filter.php')
-rw-r--r--src/usr/local/www/status_logs_filter.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/usr/local/www/status_logs_filter.php b/src/usr/local/www/status_logs_filter.php
index 7ff5efb..cd3117e 100644
--- a/src/usr/local/www/status_logs_filter.php
+++ b/src/usr/local/www/status_logs_filter.php
@@ -164,6 +164,9 @@ $pconfig['nentries'] = $config['syslog'][$specific_log]['nentries'];
$pconfig['logfilesize'] = $config['syslog'][$specific_log]['logfilesize'];
$pconfig['format'] = $config['syslog'][$specific_log]['format'];
+# System General (main) Specific
+$pconfig['loglighttpd'] = !isset($config['syslog']['nologlighttpd']);
+
# Firewall Specific
$pconfig['logdefaultblock'] = !isset($config['syslog']['nologdefaultblock']);
$pconfig['logdefaultpass'] = isset($config['syslog']['nologdefaultpass']);
@@ -181,6 +184,9 @@ if ($save_settings) {
$logfilesize = getGETPOSTsettingvalue('logfilesize', null);
$format = getGETPOSTsettingvalue('format', null);
+ # System General (main) Specific
+ $loglighttpd = getGETPOSTsettingvalue('loglighttpd', null);
+
# Firewall Specific
$logdefaultblock = getGETPOSTsettingvalue('logdefaultblock', null);
$logdefaultpass = getGETPOSTsettingvalue('logdefaultpass', null);
@@ -228,6 +234,16 @@ if ($save_settings) {
$config['syslog'][$specific_log]['format'] = $format;
}
+ # System General (main) Specific
+ if ($logfile == 'system') {
+ $oldnologlighttpd = isset($config['syslog']['nologlighttpd']);
+ $config['syslog']['nologlighttpd'] = $loglighttpd ? false : true;
+
+ if ($oldnologlighttpd !== $config['syslog']['nologlighttpd']) {
+ $logging_changed = $lighttpd_logging_changed = true;
+ }
+ }
+
# Firewall Specific
if ($logfile == 'filter') {
$oldnologdefaultblock = isset($config['syslog']['nologdefaultblock']);
@@ -267,6 +283,17 @@ if ($save_settings) {
$savemsg = gettext("The changes have been applied successfully.");
+ # System General (main) Specific
+ if ($logfile == 'system') {
+ if ($lighttpd_logging_changed) {
+ ob_flush();
+ flush();
+ log_error(gettext("webConfigurator configuration has changed. Restarting webConfigurator."));
+ send_event("service restart webgui");
+ $savemsg .= "<br />" . gettext("WebGUI process is restarting.");
+ }
+ }
+
# Firewall Specific
if ($logfile == 'filter') {
if ($firewall_logging_changed) {
@@ -859,6 +886,18 @@ $group->add(new Form_Checkbox(
$group->setHelp('Show the log entries as formatted or raw output as generated by the service. The raw output will reveal more detailed information, but it is more difficult to read.');
$section->add($group);
+
+# System General (main) Specific
+if ($logfile == 'system') {
+ $section->addInput(new Form_Checkbox(
+ 'loglighttpd',
+ 'Web Server Log',
+ 'Log errors from the web server process',
+ $pconfig['loglighttpd']
+ ))->setHelp('If this is checked, errors from the lighttpd web server process for the GUI or Captive Portal will appear in the system log.');
+}
+
+
# Firewall Specific
if ($logfile == 'filter') {
$section->addInput(new Form_Checkbox(
OpenPOWER on IntegriCloud