about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-07 11:32:09 +0000
committerEric Wong <e@80x24.org>2021-09-07 13:30:49 +0000
commit15a133ea42a51f17958582e2904034424e2866af (patch)
tree7437d9cf204ba5fb47b9e9a593812f4a6729a3ee
parent9189e65e01c529016d3000f3aa78d91e4efc4afe (diff)
downloadpublic-inbox-15a133ea42a51f17958582e2904034424e2866af.tar.gz
This may be helpful for diagnosing errors in case we missed any.
-rw-r--r--lib/PublicInbox/LEI.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index 098a45ba..bd44cfae 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -1330,6 +1330,7 @@ sub lazy_start {
         open STDOUT, '>&STDIN' or die "redirect stdout failed: $!";
         # $daemon pipe to `lei' closed, main loop begins:
         PublicInbox::DS->EventLoop;
+        dump_and_clear_log();
         exit($exit_code // 0);
 }