aboutsummaryrefslogtreecommitdiff
path: root/web/apache/service
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-02-15 18:31:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-02-17 12:44:32 +0200
commita4290c2d3bf405675054420d3c653abfcb27a3ab (patch)
tree874b9ab4b8515002643ef72e482a702ebaf51caf /web/apache/service
parentb250ead8e7237813e9bbd91cb3a9382592bf4abc (diff)
Log brep module name to Apache error_log
Diffstat (limited to 'web/apache/service')
-rw-r--r--web/apache/service10
1 files changed, 6 insertions, 4 deletions
diff --git a/web/apache/service b/web/apache/service
index 11f2ddb..75c096c 100644
--- a/web/apache/service
+++ b/web/apache/service
@@ -6,6 +6,7 @@
#define WEB_APACHE_SERVICE
#include <httpd.h>
+#include <http_config.h> // module, ap_hook_*()
#include <string>
#include <cassert>
@@ -92,7 +93,7 @@ namespace web
if (!parsed)
{
- log l (s);
+ log l (s, srv);
srv->exemplar_.version (l);
parsed = true;
}
@@ -104,8 +105,9 @@ namespace web
static void
worker_initializer (apr_pool_t*, server_rec* s) noexcept
{
- log l (s);
- instance<M> ()->init_worker (l);
+ auto srv (instance<M> ());
+ log l (s, srv);
+ srv->init_worker (l);
}
template <typename M>
@@ -116,7 +118,7 @@ namespace web
if (!r->handler || srv->name_ != r->handler) return DECLINED;
request req (r);
- log l (r->server);
+ log l (r->server, srv);
return srv->template handle<M> (req, l);
}