diff options
author | Eric Wong <e@80x24.org> | 2022-08-08 23:53:08 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-08-09 16:41:51 +0000 |
commit | 60d262483a4d6ddf295f5124aed3672866795ee5 (patch) | |
tree | 191993a87300db06ce44ff566142e37b1ec67f28 /lib/PublicInbox/NNTP.pm | |
parent | 86389293edbe3273b3ff0f61cbeb9cb6a0dfe2f2 (diff) | |
download | public-inbox-60d262483a4d6ddf295f5124aed3672866795ee5.tar.gz |
This allows "-l $ADDRESS?err=/path/to/err.log to isolate normal warn() (and carp()) messages for a particular listen address to track down errors more easily.
Diffstat (limited to 'lib/PublicInbox/NNTP.pm')
-rw-r--r-- | lib/PublicInbox/NNTP.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index 524784cb..ef01f448 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -958,7 +958,7 @@ sub out ($$;@) { # callback used by PublicInbox::DS for any (e)poll (in/out/hup/err) sub event_step { my ($self) = @_; - + local $SIG{__WARN__} = $self->{nntpd}->{warn_cb}; return unless $self->flush_write && $self->{sock} && !$self->{long_cb}; # only read more requests if we've drained the write buffer, |