From 16696fbb0664759f4765088ac7965469ebcf5a59 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 11 Apr 2007 16:57:35 +0000 Subject: Remove time based rule debugging statements. Reminded-by: Ryan Wagoner --- etc/inc/pfsense-utils.inc | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'etc') diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 1f4ccdb..2d7d27b 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -567,25 +567,14 @@ function get_time_based_rule_status($schedule) { $positionstatus = true; } - if($hourstatus == true) - log_error("[TDR DEBUG] hourstatus has been set to true"); - else - log_error("[TDR DEBUG] hourstatus has been set to false"); - if($monthstatus == true) if($daystatus == true) if($positionstatus == true) if($hourstatus == true) { $should_add_rule = true; - log_error("[TDR DEBUG] setting should add rule to true"); } } - if($should_add_rule == true) - log_error("[TDR DEBUG] should_add_rule == true"); - else - log_error("[TDR DEBUG] should_add_rule == false"); - return $should_add_rule; } @@ -600,10 +589,8 @@ function tdr_day($schedule) { $weekday = 7; $date = date("d"); $defined_days = split(",", $schedule); - log_error("[TDR DEBUG] tdr_day($schedule)"); foreach($defined_days as $dd) { if($date == $dd) { - log_error("[TDR DEBUG] tdr_day($schedule) returning true"); return true; } } @@ -617,9 +604,7 @@ function tdr_hour($schedule) { $starting_time = strtotime($tmp[0]); $ending_time = strtotime($tmp[1]); $now = strtotime("now"); - log_error("[TDR DEBUG] S: $starting_time E: $ending_time N: $now"); if($now >= $starting_time and $now <= $ending_time) { - log_error("[TDR DEBUG] tdr_hour($schedule) returning true"); return true; } return false; @@ -635,13 +620,11 @@ function tdr_position($schedule) { */ global $debug; $weekday = date("w"); - log_error("[TDR DEBUG] tdr_position($schedule) $weekday"); if ($weekday == 0) $weekday = 7; $schedule_days = split(",", $schedule); foreach($schedule_days as $day) { if($day == $weekday) { - log_error("[TDR DEBUG] tdr_position($schedule) returning true $day"); return true; } } @@ -655,10 +638,8 @@ function tdr_month($schedule) { global $debug; $todays_month = date("n"); $months = split(",", $schedule); - log_error("[TDR DEBUG] tdr_month($schedule)"); foreach($months as $month) { if($month == $todays_month) { - log_error("[TDR DEBUG] tdr_month($schedule) is returning true $todays_month - $month"); return true; } } @@ -702,7 +683,6 @@ function reset_carp() { for($x=0; $x<$carp_counter; $x++) { mwexec("/sbin/ifconfig carp{$x} down"); mwexec("/sbin/ifconfig carp{$x} delete"); - log_error("CARP: $needed_carp_interfaces < $carp_counter"); if($needed_carp_interfaces < $carp_counter) { $needed_carp_interfaces--; log_error("Destroying carp interface."); -- cgit v1.1