diff options
author | Eric Wong <e@80x24.org> | 2022-08-08 23:53:08 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-08-09 16:41:51 +0000 |
commit | 60d262483a4d6ddf295f5124aed3672866795ee5 (patch) | |
tree | 191993a87300db06ce44ff566142e37b1ec67f28 /lib/PublicInbox/HTTPD.pm | |
parent | 86389293edbe3273b3ff0f61cbeb9cb6a0dfe2f2 (diff) | |
download | public-inbox-60d262483a4d6ddf295f5124aed3672866795ee5.tar.gz |
This allows "-l $ADDRESS?err=/path/to/err.log to isolate normal warn() (and carp()) messages for a particular listen address to track down errors more easily.
Diffstat (limited to 'lib/PublicInbox/HTTPD.pm')
-rw-r--r-- | lib/PublicInbox/HTTPD.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/HTTPD.pm b/lib/PublicInbox/HTTPD.pm index e531ee70..bae7281b 100644 --- a/lib/PublicInbox/HTTPD.pm +++ b/lib/PublicInbox/HTTPD.pm @@ -47,6 +47,7 @@ sub env_for ($$$) { # detect when to use async paths for slow blobs 'pi-httpd.async' => \&pi_httpd_async, 'pi-httpd.app' => $self->{app}, + 'pi-httpd.warn_cb' => $self->{warn_cb}, } } |