From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D7F691F9FC for ; Tue, 12 Oct 2021 11:47:05 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/9] daemon: quiet down Eml-related warnings Date: Tue, 12 Oct 2021 11:46:58 +0000 Message-Id: <20211012114705.383-3-e@80x24.org> In-Reply-To: <20211012114705.383-1-e@80x24.org> References: <20211012114705.383-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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(+) 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;