Add an enable button, to disable Logging.

Refactor out logging code into its own module for cleanliness.
This commit is contained in:
Colin Kuskie 2009-02-11 17:11:24 -08:00 committed by Patrick Donelan
parent f676bfc536
commit 4df4862c68
4 changed files with 23 additions and 10 deletions

View file

@ -95,13 +95,14 @@ sub installPassiveAnalyticsRule {
}
#----------------------------------------------------------------------------
# Add the PassiveAnalytics Rule table
# Add the PassiveAnalytics Settings
sub addPassiveAnalyticsSettings {
my $session = shift;
print "\tInstall Passive Analytics settings... ";
# and here's our code
$session->setting->add('passiveAnalyticsInterval', 300);
$session->setting->add('passiveAnalyticsDeleteDelta', 0);
$session->setting->add('passiveAnalyticsEnabled', 0);
print "DONE!\n";
}