]> Frank Brehm's Git Trees - scripts/solaris.git/commitdiff
Kosmetik
authorFrank Brehm <frank@brehm-online.com>
Mon, 3 Apr 2006 14:35:26 +0000 (14:35 +0000)
committerFrank Brehm <frank@brehm-online.com>
Mon, 3 Apr 2006 14:35:26 +0000 (14:35 +0000)
LogRotate.pm

index 731ec964e8cbcab2da1a96f47edc74f7a7d0de9c..1a8be24e585e0903f81c05e3d85558b9562f8f19 100644 (file)
@@ -1242,7 +1242,8 @@ sub rotate($) {
 
   foreach $file ( sort { lc($a) cmp lc($b) } keys %{$self->{'c'}{'logfiles'}} ) {
 
-    print "\n" . $p . "Bearbeite Logdatei '$file' ...\n" if verbose() > 1;
+    print( "\n" . ("-" x 20) . "\n\n") if verbose() > 1;
+    print $p . "Bearbeite Logdatei '$file' ...\n" if verbose() > 1;
 
     $should_rotate = $self->test_for_rotate( $file );
 
@@ -1382,6 +1383,8 @@ sub rotate_file($$) {
   my ( $omode, $ouid, $ogid, $nmode, $nuid, $ngid, $atime, $mtime );
   my ( @Stats );
 
+  print "\n";
+
   my $ce = $self->{'c'}->compressext();
   if ( not defined($ce) or $ce =~ /^\s*$/ ) {
     $ce = ".gz";
@@ -1393,8 +1396,6 @@ sub rotate_file($$) {
     carp( $p . "Keine Logdatei uebergeben!\n" );
     return undef;
   }
-  print "\n";
-  print( ("-" x 20) . "\n\n") if verbose() > 1;
   print $p . "Rotiere Logdatei '$file'.\n" if verbose();
   my $f = $self->{'c'}{'logfiles'}{$file};