]> Sergey Matveev's repositories - public-inbox.git/commitdiff
daemon: quiet down Eml-related warnings
authorEric Wong <e@80x24.org>
Tue, 12 Oct 2021 11:46:58 +0000 (11:46 +0000)
committerEric Wong <e@80x24.org>
Tue, 12 Oct 2021 21:46:32 +0000 (21:46 +0000)
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

index 70d0f1c5de1af336fae7d1c4e824ed6c9f66996d..5c64e84cca4ae15f274b1b43d744c0103a1a67a5 100644 (file)
@@ -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;