]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei_store: quiet down per-message related warnings
authorEric Wong <e@80x24.org>
Thu, 1 Apr 2021 12:10:42 +0000 (17:10 +0500)
committerEric Wong <e@80x24.org>
Thu, 1 Apr 2021 18:25:15 +0000 (18:25 +0000)
It's needless noise when doing augment and output preparation
and shows up way too late and out-of-band with lei-daemon.

lib/PublicInbox/LeiStore.pm

index 8574d736ebd37336ef92463178707753a318d02b..d2dd4e7bfec0d4bb5e2524b71ad242e6b7900be3 100644 (file)
@@ -11,6 +11,7 @@ use strict;
 use v5.10.1;
 use parent qw(PublicInbox::Lock PublicInbox::IPC);
 use PublicInbox::ExtSearchIdx;
+use PublicInbox::Eml;
 use PublicInbox::Import;
 use PublicInbox::InboxWritable qw(eml_from_path);
 use PublicInbox::V2Writable;
@@ -343,6 +344,7 @@ sub ipc_atfork_child {
        my ($self) = @_;
        my $lei = $self->{lei};
        $lei->_lei_atfork_child(1) if $lei;
+       $SIG{__WARN__} = PublicInbox::Eml::warn_ignore_cb();
        $self->SUPER::ipc_atfork_child;
 }