From 680a817ef1627bb8e149fd1967ecc05a8d634dc9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 1 Apr 2021 17:10:42 +0500 Subject: lei_store: quiet down per-message related warnings 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/PublicInbox/LeiStore.pm b/lib/PublicInbox/LeiStore.pm index 8574d736..d2dd4e7b 100644 --- a/lib/PublicInbox/LeiStore.pm +++ b/lib/PublicInbox/LeiStore.pm @@ -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; } -- cgit v1.2.3-24-ge0c7