From 176cd51f9aa81b741deb00cd8096428eb6712b9e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 12 Oct 2021 11:46:58 +0000 Subject: daemon: quiet down Eml-related warnings Email::Address::XS is quite noisy and there's nothing we can really do about messages we're serving from read-only daemons. --- lib/PublicInbox/Daemon.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm index 70d0f1c5..5c64e84c 100644 --- a/lib/PublicInbox/Daemon.pm +++ b/lib/PublicInbox/Daemon.pm @@ -20,6 +20,7 @@ use PublicInbox::EOFpipe; use PublicInbox::Sigfd; use PublicInbox::Git; use PublicInbox::GitAsyncCat; +use PublicInbox::Eml; our $SO_ACCEPTFILTER = 0x1000; my @CMD; my ($set_user, $oldset); @@ -642,6 +643,7 @@ sub run ($$$;$) { # localize GCF2C for tests: local $PublicInbox::GitAsyncCat::GCF2C; local $PublicInbox::Git::async_warn = 1; + local $SIG{__WARN__} = \&PublicInbox::Eml::warn_ignore_cb; daemon_loop($refresh, $post_accept, $tlsd, $af_default); PublicInbox::DS->Reset; -- cgit v1.2.3-24-ge0c7