Browse Source

disable some debug messages

personal/stbuehler/wip
Stefan Bühler 9 years ago
parent
commit
7f61ca9dba
  1. 2
      src/angel/angel_plugin_core.c
  2. 2
      src/main/angel.c
  3. 8
      src/main/backends.c
  4. 1
      src/modules/mod_fastcgi.c

2
src/angel/angel_plugin_core.c

@ -535,7 +535,7 @@ static void core_listen(liServer *srv, liPlugin *p, liInstance *i, gint32 id, GS
liSocketAddress addr;
listen_socket *sock;
DEBUG(srv, "core_listen(%i) '%s'", id, data->str);
/* DEBUG(srv, "core_listen(%i) '%s'", id, data->str); */
if (-1 == id) return; /* ignore simple calls */

2
src/main/angel.c

@ -69,7 +69,7 @@ static void li_angel_listen_cb(gpointer pctx, gboolean timeout, GString *error,
if (fds && fds->len > 0) {
for (i = 0; i < fds->len; i++) {
int fd = g_array_index(fds, int, i);
DEBUG(srv, "listening on fd %i", fd);
/* DEBUG(srv, "listening on fd %i", fd); */
if (ctx.cb) {
ctx.cb(srv, fd, ctx.data);
} else {

8
src/main/backends.c

@ -465,7 +465,7 @@ static void S_backend_pool_distribute(liBackendPool_p *pool, liWorker *wrk) {
} else {
if (0 == pool->wait_queue.length) return;
ERROR(wrk->srv, "pool wait queue: %i, pool idle: %i", pool->wait_queue.length, pool->idle);
/* ERROR(wrk->srv, "pool wait queue: %i, pool idle: %i", pool->wait_queue.length, pool->idle); */
if (pool->idle > 0) {
/* distribute backends over all workers:
@ -492,7 +492,7 @@ static void S_backend_pool_distribute(liBackendPool_p *pool, liWorker *wrk) {
for (i = 0; i < worker_count; ++i) {
liBackendWorkerPool *wpool = &pool->worker_pools[i];
ERROR(wrk->srv, "pool %i: queue: %i, idle: %i", i, wpool->wait_queue.length, wpool->idle);
/* ERROR(wrk->srv, "pool %i: queue: %i, idle: %i", i, wpool->wait_queue.length, wpool->idle); */
while (wpool->wait_queue.length > 0 && wpool->idle > 0) {
liBackendWait *bwait = LI_CONTAINER_OF(g_queue_pop_head_link(&wpool->wait_queue), liBackendWait, wait_queue_link);
@ -904,8 +904,8 @@ void li_backend_pool_free(liBackendPool *bpool) {
} else {
liServer *srv = pool->worker_pools[0].wrk->srv;
ERROR(srv, "li_backend_pool_free: %p, reserved: %i, idle: %i, pending: %i", (void*) pool,
pool->reserved, pool->idle, pool->pending);
/*ERROR(srv, "li_backend_pool_free: %p, reserved: %i, idle: %i, pending: %i", (void*) pool,
pool->reserved, pool->idle, pool->pending); */
li_collect_start_global(srv, backend_pool_worker_shutdown, pool, backend_pool_worker_shutdown_done, NULL);
}
}

1
src/modules/mod_fastcgi.c

@ -149,7 +149,6 @@ static void fastcgi_free(liServer *srv, gpointer param) {
fastcgi_context *ctx = (fastcgi_context*) param;
UNUSED(srv);
ERROR(srv, "%s", "fastcgi_free");
fastcgi_context_release(ctx);
}

Loading…
Cancel
Save