2
0
Fork 0

Remove req/s debug output, put docroot debug in request-handling option

This commit is contained in:
Stefan Bühler 2009-10-02 12:13:37 +02:00
parent aadbf51c84
commit 48721307b3
2 changed files with 9 additions and 3 deletions

View File

@ -156,7 +156,9 @@ static liHandlerResult core_handle_docroot(liVRequest *vr, gpointer param, gpoin
g_string_truncate(vr->physical.doc_root, 0);
g_string_append_len(vr->physical.doc_root, GSTR_LEN((GString*) param));
VR_DEBUG(vr, "docroot: %s", vr->physical.doc_root->str);
if (CORE_OPTION(LI_CORE_OPTION_DEBUG_REQUEST_HANDLING).boolean) {
VR_DEBUG(vr, "docroot: %s", vr->physical.doc_root->str);
}
/* build physical path: docroot + uri.path */
g_string_truncate(vr->physical.path, 0);
@ -165,7 +167,9 @@ static liHandlerResult core_handle_docroot(liVRequest *vr, gpointer param, gpoin
li_path_append_slash(vr->physical.path);
g_string_append_len(vr->physical.path, GSTR_LEN(vr->request.uri.path));
VR_DEBUG(vr, "physical path: %s", vr->physical.path->str);
if (CORE_OPTION(LI_CORE_OPTION_DEBUG_REQUEST_HANDLING).boolean) {
VR_DEBUG(vr, "physical path: %s", vr->physical.path->str);
}
return LI_HANDLER_GO_ON;
}

View File

@ -320,8 +320,10 @@ static void worker_stats_watcher_cb(struct ev_loop *loop, ev_timer *w, int reven
if (wrk->stats.last_update && now != wrk->stats.last_update) {
wrk->stats.requests_per_sec =
(wrk->stats.requests - wrk->stats.last_requests) / (now - wrk->stats.last_update);
if (wrk->stats.requests_per_sec > 0)
#if 0
if (wrk->stats.requests_per_sec > 0)
DEBUG(wrk->srv, "worker %u: %.2f requests per second", wrk->ndx, wrk->stats.requests_per_sec);
#endif
}
/* 5s averages */