Subject: | add option to disable socket appender warning |
the Socket appender issues a warning if the 'silent_recovery' option is
specified stating that it could not connect to the client.
we set warnings == fatal in our systems, so this warning causes our
program to die if it can't connect to the client.
the attached patch adds an option called 'no_warning' so the warn
message is skipped.
Subject: | Socket.diff |
Index: Socket.pm
===================================================================
RCS file: /cvsroot/log4perl/Log-Log4perl/lib/Log/Log4perl/Appender/Socket.pm,v
retrieving revision 1.7
diff -r1.7 Socket.pm
30c30,32
< warn "Connect to $self->{PeerAddr}:$self->{PeerPort} failed: $!";
---
> unless ($self->{no_warning}) {
> warn "Connect to $self->{PeerAddr}:$self->{PeerPort} failed: $!";
> }