summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-11 16:57:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-11 16:57:35 +0000
commit16696fbb0664759f4765088ac7965469ebcf5a59 (patch)
tree7f7eec4263b7e5ea4753b77044747cf380202796 /etc
parent06dae605e30e2dcb310148e5e7db5539a6cf9348 (diff)
downloadpfsense-16696fbb0664759f4765088ac7965469ebcf5a59.zip
pfsense-16696fbb0664759f4765088ac7965469ebcf5a59.tar.gz
Remove time based rule debugging statements.
Reminded-by: Ryan Wagoner
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc20
1 files changed, 0 insertions, 20 deletions
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.");
OpenPOWER on IntegriCloud