Commit 8664ff2c authored by Franco Fichtner's avatar Franco Fichtner

proxy: add missing store.log even though it's disabled ATM; closes #462

parent 735d0bed
...@@ -39,6 +39,7 @@ if ($tab_group == 'vpn') { ...@@ -39,6 +39,7 @@ if ($tab_group == 'vpn') {
} else { } else {
$tab_array[] = array(gettext('Cache'), true, '/diag_logs_proxy.php?type=cache'); $tab_array[] = array(gettext('Cache'), true, '/diag_logs_proxy.php?type=cache');
$tab_array[] = array(gettext('Access'), false, '/diag_logs_proxy.php?type=access'); $tab_array[] = array(gettext('Access'), false, '/diag_logs_proxy.php?type=access');
$tab_array[] = array(gettext('Store'), false, '/diag_logs_proxy.php?type=store');
} }
?><ul class="nav nav-pills" role="tablist"> ?><ul class="nav nav-pills" role="tablist">
......
...@@ -36,7 +36,7 @@ if (empty($config['syslog']['nentries'])) { ...@@ -36,7 +36,7 @@ if (empty($config['syslog']['nentries'])) {
} }
$type = 'cache'; $type = 'cache';
if (isset($_GET['type']) && $_GET['type'] === 'access') { if (isset($_GET['type']) && ($_GET['type'] === 'access' || $_GET['type'] === 'store')) {
$type = $_GET['type']; $type = $_GET['type'];
} }
......
...@@ -71,6 +71,7 @@ function clear_all_log_files() ...@@ -71,6 +71,7 @@ function clear_all_log_files()
$log_files = array( $log_files = array(
'squid/access', 'squid/access',
'squid/cache', 'squid/cache',
'squid/store',
); );
foreach ($log_files as $lfile) { foreach ($log_files as $lfile) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment