diff options
Diffstat (limited to 'web/apache/service')
-rw-r--r-- | web/apache/service | 10 |
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); } |