diff options
author | Eric Wong <e@80x24.org> | 2021-09-14 02:39:01 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-14 02:56:52 +0000 |
commit | 586997aada72a132ca5ea75dc0eb308788a2702f (patch) | |
tree | bffb0698b29c489db02eddcc129edc356359edbd | |
parent | b34a267efff7b83173b28edf43e8e24845c40a77 (diff) | |
download | public-inbox-586997aada72a132ca5ea75dc0eb308788a2702f.tar.gz |
This should help us notice (and fix) bugs more easily.
-rw-r--r-- | lib/PublicInbox/LEI.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 784e679d..f0caac03 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -1347,7 +1347,8 @@ sub lazy_start { open STDERR, '>&STDIN' or die "redirect stderr failed: $!"; open STDOUT, '>&STDIN' or die "redirect stdout failed: $!"; # $daemon pipe to `lei' closed, main loop begins: - PublicInbox::DS->EventLoop; + eval { PublicInbox::DS->EventLoop }; + warn "event loop error: $@\n" if $@; dump_and_clear_log(); exit($exit_code // 0); } |