about summary refs log tree commit homepage
path: root/lib/PublicInbox/Daemon.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-08 10:20:04 +0000
committerEric Wong <e@80x24.org>2021-10-08 21:23:30 +0000
commitdd5a4f6497d4a5d94f61186a85516a56d7db8c29 (patch)
tree8f9056fd18bb8ffcc5e601699bbb5495fecc8c6a /lib/PublicInbox/Daemon.pm
parentb2c5c71a014b6acc897b12c75ae9fc13476a5b3f (diff)
downloadpublic-inbox-dd5a4f6497d4a5d94f61186a85516a56d7db8c29.tar.gz
This should help us catch BUG: errors (and then some) in
-extindex and other read-write code paths.  Only read-only
daemons should warn on async callback failures, since those
aren't capable of causing data loss.
Diffstat (limited to 'lib/PublicInbox/Daemon.pm')
-rw-r--r--lib/PublicInbox/Daemon.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm
index 5be474fa..0acd4ee9 100644
--- a/lib/PublicInbox/Daemon.pm
+++ b/lib/PublicInbox/Daemon.pm
@@ -18,6 +18,7 @@ use PublicInbox::DS qw(now);
 require PublicInbox::Listener;
 use PublicInbox::EOFpipe;
 use PublicInbox::Sigfd;
+use PublicInbox::Git;
 use PublicInbox::GitAsyncCat;
 our $SO_ACCEPTFILTER = 0x1000;
 my @CMD;
@@ -640,6 +641,7 @@ sub run ($$$;$) {
 
         # localize GCF2C for tests:
         local $PublicInbox::GitAsyncCat::GCF2C;
+        local $PublicInbox::Git::async_warn = 1;
 
         daemon_loop($refresh, $post_accept, $tlsd, $af_default);
         PublicInbox::DS->Reset;