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

This commit is contained in:
Franco Fichtner 2015-11-18 08:48:58 +01:00
parent 735d0beda5
commit 8664ff2cb0
3 changed files with 3 additions and 1 deletions

View File

@ -39,6 +39,7 @@ if ($tab_group == 'vpn') {
} else {
$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('Store'), false, '/diag_logs_proxy.php?type=store');
}
?><ul class="nav nav-pills" role="tablist">

View File

@ -36,7 +36,7 @@ if (empty($config['syslog']['nentries'])) {
}
$type = 'cache';
if (isset($_GET['type']) && $_GET['type'] === 'access') {
if (isset($_GET['type']) && ($_GET['type'] === 'access' || $_GET['type'] === 'store')) {
$type = $_GET['type'];
}

View File

@ -71,6 +71,7 @@ function clear_all_log_files()
$log_files = array(
'squid/access',
'squid/cache',
'squid/store',
);
foreach ($log_files as $lfile) {