Skip to content

Commit

Permalink
ensure newlines on logging
Browse files Browse the repository at this point in the history
  • Loading branch information
xdg committed Aug 13, 2011
1 parent a5102f6 commit eba6a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PAUSE/mldistwatch.pm
Expand Up @@ -175,11 +175,11 @@ sub verbose {
Data::Dumper->new([$self],[qw()])->Indent(1)->Useqq(1)->Dump;
$self->{INTRODUCED} = undef;
}
push @what, "\n" unless $what[-1] =~ m{\n$};
my $logfh;
if (my $logfile = $self->{OPT}{logfile}) {
open $logfh, ">>", $logfile or die;
unshift @what, scalar localtime;
push @what, "\n";
} else {
$logfh = *STDOUT;
}
Expand Down

0 comments on commit eba6a30

Please sign in to comment.