Fix some print statements were outputting to STDOUT instead of STDERR. Thanks to ammdispose for the patch.

This commit is contained in:
Darold Gilles 2013-05-17 19:31:09 +02:00
parent c536b9300e
commit 7b22d55fec

View File

@ -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);
}