|
From: xavier <lis...@na...> - 2003-11-17 01:44:56
|
Hi,
I'd like to lower the debug information about the Notifier.pm
(like, putting the level notification up to 9 instead of 1)
debug 1 is giving too much noise for something like that.
Should I commit it ?
thanks
bye
===================================================================
RCS file: /cvsroot/peep/peep-0.5.x/client/Net/Peep/Notifier/Notifier.pm,v
retrieving revision 1.1
diff -u -r1.1 Notifier.pm
--- Notifier.pm 18 Oct 2001 06:01:34 -0000 1.1
+++ Notifier.pm 17 Nov 2003 01:41:22 -0000
@@ -148,11 +148,11 @@
my $status = $notification->status();
if ($NOTIFICATION_LEVEL{$client} eq 'crit' && $status ne 'crit') {
- $LOGGER->debug(1,"Notification ignored: Notification level is [$status]. ".
+ $LOGGER->debug(9,"Notification ignored: Notification level is [$status]. ".
"Notifications are only sent at [crit].");
return 1;
} elsif ($NOTIFICATION_LEVEL{$client} eq 'warn' && $status !~ /^(warn|crit)$/) {
- $LOGGER->debug(1,"Notification ignored: Notification level is [$status]. ".
+ $LOGGER->debug(9,"Notification ignored: Notification level is [$status]. ".
"Notifications are only sent at [crit] or [warn].");
return 1;
} else {
--
xavier
|