From 836efaaf7013f30533f36fec4cdfa99ab2c523d1 Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Thu, 16 Jun 2011 07:20:15 +0200 Subject: [PATCH] less verbose logging in python api for clustering --- plugins/python/uwsgi_pymodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/python/uwsgi_pymodule.c b/plugins/python/uwsgi_pymodule.c index 201491f3..3528ee4c 100644 --- a/plugins/python/uwsgi_pymodule.c +++ b/plugins/python/uwsgi_pymodule.c @@ -2287,7 +2287,9 @@ PyObject *py_uwsgi_cluster_node_name(PyObject * self, PyObject * args) { for (i = 0; i < MAX_CLUSTER_NODES; i++) { ucn = &uwsgi.shared->nodes[i]; if (ucn->name[0] != 0) { +#ifdef UWSGI_DEBUG uwsgi_log("node_name: %s %s\n", node, ucn->name); +#endif if (!strcmp(ucn->name, node)) { return PyString_FromString(ucn->nodename); }