blob: 205d5848928a809ed867762c1d28c26a619dd1f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- lib/clog_webapi.php.orig 2017-06-05 03:49:49 UTC
+++ lib/clog_webapi.php
@@ -40,7 +40,7 @@ function clog_purge_logfile() {
$logfile = read_config_option('path_cactilog');
if ($logfile == '') {
- $logfile = $config['base_path'] . '/log/cacti.log';
+ $logfile = '/var/log/cacti/log';
}
if (file_exists($logfile)) {
@@ -70,7 +70,7 @@ function clog_view_logfile() {
$logfile = $requestedFile;
}
} elseif ($logfile == '') {
- $logfile = $config['base_path'] . '/log/cacti.log';
+ $logfile = '/var/log/cacti/log';
}
/* ================= input validation and session storage ================= */
|