From 7b22d55fec1c32bb0338d699b1e1ae7bdc91c134 Mon Sep 17 00:00:00 2001 From: Darold Gilles Date: Fri, 17 May 2013 19:31:09 +0200 Subject: [PATCH] Fix some print statements were outputting to STDOUT instead of STDERR. Thanks to ammdispose for the patch. --- SquidAnalyzer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SquidAnalyzer.pm b/SquidAnalyzer.pm index bf9e0a1..6997a51 100644 --- a/SquidAnalyzer.pm +++ b/SquidAnalyzer.pm @@ -303,7 +303,7 @@ sub parseFile if (!$self->{QuietMode}) { print STDERR "END TIME : ", strftime("%a %b %e %H:%M:%S %Y", localtime($self->{end_time})), "\n"; - print "Read $line_count lines, matched $line_processed_count and found $line_stored_count new lines\n"; + print STDERR "Read $line_count lines, matched $line_processed_count and found $line_stored_count new lines\n"; } # Set the current start time into history file @@ -386,7 +386,7 @@ sub _init # Prevent for a call without instance if (!ref($self)) { - print "ERROR - init : Unable to call init without an object instance.\n"; + print STDERR "ERROR - init : Unable to call init without an object instance.\n"; exit(0); }