summaryrefslogtreecommitdiff
path: root/Echolot/Report.pm
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2004-04-24 11:03:07 +0000
committerPeter Palfrader <peter@palfrader.org>2004-04-24 11:03:07 +0000
commitcba4fede6001197482b3d6c79dd698aae4232339 (patch)
treee7220466933bffdc4f600b8ee468d8829a14d660 /Echolot/Report.pm
parent0d19f7f43d3cf883a238e24b9ba44cf918d9d20c (diff)
Print summary on notice level, not info, if it was requested manually
Diffstat (limited to 'Echolot/Report.pm')
-rw-r--r--Echolot/Report.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/Echolot/Report.pm b/Echolot/Report.pm
index db32687..22e2bf9 100644
--- a/Echolot/Report.pm
+++ b/Echolot/Report.pm
@@ -20,7 +20,8 @@ use strict;
use English;
use Echolot::Log;
-sub print_summary() {
+sub print_summary(;$) {
+ my ($manual) = @_;
my @addresses = sort { $a->{'address'} cmp $b->{'address'} } Echolot::Globals::get()->{'storage'}->get_addresses();
my %remailers = map { $_->{'address'} => $_ } Echolot::Globals::get()->{'storage'}->get_remailers();
@@ -42,7 +43,11 @@ sub print_summary() {
};
};
};
- Echolot::Log::info($report);
+ if (defined $manual) {
+ Echolot::Log::notice($report);
+ } else {
+ Echolot::Log::info($report);
+ }
return 1;
};