diff options
author | Eric Wong <e@80x24.org> | 2021-04-28 07:52:01 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-04-28 19:30:57 +0000 |
commit | 63e2751ace2dd35a661620a9ad30d6c92948a009 (patch) | |
tree | b088949e092993d3225f1cd58ed6d4ff723e30a9 /lib/PublicInbox/LEI.pm | |
parent | 9d0d8caf8d9c5eb3afc0c862bdddb2ec310259f5 (diff) | |
download | public-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.pm | 3 |
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__} } |