[Logcheck-commits] r1620 - logcheck/branches/zugschlus200707/src
zugschlus at users.alioth.debian.org
zugschlus at users.alioth.debian.org
Sat Jul 28 13:20:23 UTC 2007
Author: zugschlus
Date: 2007-07-28 13:20:23 +0000 (Sat, 28 Jul 2007)
New Revision: 1620
Modified:
logcheck/branches/zugschlus200707/src/logtail2
Log:
remove debug code
Modified: logcheck/branches/zugschlus200707/src/logtail2
===================================================================
--- logcheck/branches/zugschlus200707/src/logtail2 2007-07-28 13:19:14 UTC (rev 1619)
+++ logcheck/branches/zugschlus200707/src/logtail2 2007-07-28 13:20:23 UTC (rev 1620)
@@ -51,7 +51,7 @@
my ($filename, $offset) = @_;
# this subroutine prints the contents of the file named $filename,
# starting offset $offset.
- print "print_from_offset $filename, $offset\n";
+ #print "print_from_offset $filename, $offset\n";
unless (open(LOGFILE, $filename)) {
print STDERR "File $logfile cannot be read: $!\n";
exit 66;
@@ -107,7 +107,7 @@
# rotated. Its magic is mainly taken from logcheck's logoutput()
# function with dateext magic added.
- print "determine_rotated_logfile $filename $inode\n";
+ #print "determine_rotated_logfile $filename $inode\n";
for my $codefile (glob("/usr/share/logtail/detectrotate/*.dtr")) {
my $func = do $codefile;
if (!$func) {
@@ -117,11 +117,11 @@
$rotated_filename = $func->($filename);
last if $rotated_filename;
}
- if ($rotated_filename) {
- print "rotated_filename $rotated_filename (". inode($rotated_filename). ")\n";
- } else {
- print "no rotated file found\n";
- }
+ #if ($rotated_filename) {
+ # print "rotated_filename $rotated_filename (". inode($rotated_filename). ")\n";
+ #} else {
+ # print "no rotated file found\n";
+ #}
if ($rotated_filename && inode($rotated_filename) == $inode) {
return $rotated_filename;
} else {
@@ -178,7 +178,7 @@
# entire file.
# Additionally, we might want to see whether we can find the
# previous instance of the file and to process it from here.
- print "inode $inode, ino $ino\n";
+ #print "inode $inode, ino $ino\n";
my $rotatedfile = determine_rotated_logfile($logfile,$inode);
if ( $rotatedfile ) {
print_from_offset($rotatedfile,$offset);
More information about the Logcheck-commits
mailing list