Skip to content

Commit

Permalink
Merge pull request pfsense#530 from sebvdk/patch-1
Browse files Browse the repository at this point in the history
Fix logrotate lines max
  • Loading branch information
jim-p committed Oct 24, 2013
2 parents ef33365 + 794687c commit f48cf81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/squidGuard/squidguard_configurator.inc
Expand Up @@ -205,6 +205,7 @@ define('SQUIDGUARD_GUILOG_LEVEL', SQUIDGUARD_INFO); # log level
define('SQUIDGUARD_GUILOG_MAXCOUNT', 500); # log max lines
define('SQUIDGUARD_GUILOG_ENABLE', true); # on/off gui log - option override GUI settings
define('SQUIDGUARD_LOG_ENABLE', true); # on/off SG log - option override GUI settings
define('SQUIDGUARD_LOGROTATE_MAXCOUNT', 1000); # logrotate max lines

#
define('FLT_DEFAULT_ALL', 'all');
Expand Down Expand Up @@ -1920,7 +1921,8 @@ function acl_remove_blacklist_items($items)
# -----------------------------------------------------------------------------
function sg_script_logrotate()
{

$lines = SQUIDGUARD_LOGROTATE_MAXCOUNT;

global $squidguard_config;

$sglogname = $squidguard_config[F_LOGDIR] . "/" . SQUIDGUARD_LOGFILE;
Expand Down

0 comments on commit f48cf81

Please sign in to comment.