Permalink
Browse files

lib/Log/Log4perl/JavaMap/FileAppender.pm

  • Loading branch information...
1 parent 79056e7 commit 085f8678966a1332928b03d620a4035437521c28 kgoess committed Sep 13, 2002
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Log/Log4perl/JavaMap/FileAppender.pm
@@ -15,9 +15,9 @@ sub new {
my $mode;
if (defined($data->{Append}{value})){
- if (lc $data->{Append}{value} eq 'true' || $data->{Append}{value}){
+ if (lc $data->{Append}{value} eq 'true' || $data->{Append}{value} == 1){
$mode = 'append';
- }elsif (lc $data->{Append}{value} eq 'true' || ! $data->{Append}{value}) {
+ }elsif (lc $data->{Append}{value} eq 'false' || $data->{Append}{value} == 0) {
$mode = 'write';
}elsif($data->{Append} =~ /^(write|append)$/){
$mode = $data->{Append}

0 comments on commit 085f867

Please sign in to comment.