about summary refs log tree commit homepage
path: root/lib/PublicInbox/LEI.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-28 07:52:01 +0000
committerEric Wong <e@80x24.org>2021-04-28 19:30:57 +0000
commit63e2751ace2dd35a661620a9ad30d6c92948a009 (patch)
treeb088949e092993d3225f1cd58ed6d4ff723e30a9 /lib/PublicInbox/LEI.pm
parent9d0d8caf8d9c5eb3afc0c862bdddb2ec310259f5 (diff)
downloadpublic-inbox-63e2751ace2dd35a661620a9ad30d6c92948a009.tar.gz
"lei import" is probably the only place where it users
might care about warnings.
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r--lib/PublicInbox/LEI.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index a949ae3e..cfbf12f0 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -23,6 +23,7 @@ use PublicInbox::Sigfd;
 use PublicInbox::DS qw(now dwaitpid);
 use PublicInbox::Spawn qw(spawn popen_rd);
 use PublicInbox::Lock;
+use PublicInbox::Eml;
 use Time::HiRes qw(stat); # ctime comparisons for config cache
 use File::Path qw(mkpath);
 use File::Spec;
@@ -509,6 +510,8 @@ sub _lei_atfork_child {
         %PATH2CFG = ();
         undef $errors_log;
         $quit = \&CORE::exit;
+        $self->{-eml_noisy} or # only "lei import" sets this atm
+                $SIG{__WARN__} = PublicInbox::Eml::warn_ignore_cb();
         $current_lei = $persist ? undef : $self; # for SIG{__WARN__}
 }