]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiStoreErr.pm
lei: dump errors to syslog, and not to CLI
[public-inbox.git] / lib / PublicInbox / LeiStoreErr.pm
index 5f9ba24d45d2ebfd859f14ad7530cfa161b1651a..cc085fdca1b852315341244956caa4fad4828e7a 100644 (file)
@@ -2,7 +2,7 @@
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 
 # forwards stderr from lei/store process to any lei clients using
-# the same store
+# the same store, falls back to syslog if no matching clients exist.
 package PublicInbox::LeiStoreErr;
 use strict;
 use v5.10.1;
@@ -31,7 +31,7 @@ sub event_step {
                print $err $$rbuf and $printed = 1;
        }
        if (!$printed) {
-               openlog('lei-store', 'pid,nowait,nofatal,ndelay', 'user');
+               openlog('lei/store', 'pid,nowait,nofatal,ndelay', 'user');
                for my $l (split(/\n/, $$rbuf)) { syslog('warning', '%s', $l) }
                closelog(); # don't share across fork
        }