--------
- http module: only run prometheus in parent process if using --forks=N,
as the submodule collects metrics from all sub-processes as well.
+- fix build with -DNOVERBOSELOG (#424)
Improvements
------------
int kr_resolve_finish(struct kr_request *request, int state)
{
-#ifndef NOVERBOSELOG
- struct kr_rplan *rplan = &request->rplan;
-#endif
-
/* Finalize answer and construct wire-buffer. */
ITERATE_LAYERS(request, NULL, answer_finalize);
if (request->state == KR_STATE_FAIL) {
request->state = state;
ITERATE_LAYERS(request, NULL, finish);
+#ifndef NOVERBOSELOG
+ struct kr_rplan *rplan = &request->rplan;
struct kr_query *last = kr_rplan_last(rplan);
VERBOSE_MSG(last, "finished: %d, queries: %zu, mempool: %zu B\n",
request->state, rplan->resolved.len, (size_t) mp_total_size(request->pool.ctx));
+#endif
/* Trace request finish */
if (request->trace_finish) {