Skip Menu |

This queue is for tickets about the Log-Log4perl CPAN distribution.

Report information
The Basics
Id: 34399
Status: resolved
Priority: 0/
Queue: Log-Log4perl

People
Owner: Nobody in particular
Requestors: jgangemi [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.15
Fixed in: (no value)



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: $!"; > }
On Mon Mar 24 10:51:15 2008, JAE wrote: Show quoted text
> the attached patch adds an option called 'no_warning' so the warn > message is skipped.
Applied in 1.18, sorry for the delay! -- Mike