Module: check_mk
Branch: master
Commit: 452be13a2810f3f7090f7c67dfd6c7acd6eddba1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=452be13a2810f3…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Oct 9 20:14:38 2013 +0200
Removed some out commented log messages
---
doc/treasures/liveproxy/liveproxyd | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/doc/treasures/liveproxy/liveproxyd b/doc/treasures/liveproxy/liveproxyd
index a3f9d0e..2a7fe33 100755
--- a/doc/treasures/liveproxy/liveproxyd
+++ b/doc/treasures/liveproxy/liveproxyd
@@ -269,8 +269,6 @@ def get_new_requests(readable):
client["state"] = "wait_for_channel"
client["since"] = time.time()
client["request"] = request
- # log("Get new request from %s/%d (%d bytes)" %
- # (sitename, client["socket"].fileno(),
len(request)))
except Exception, e:
if opt_debug:
raise
@@ -302,8 +300,6 @@ def distribute_requests():
def forward_request(sitename, client, channel):
cls = client["socket"]
chs = channel["socket"]
- # log("Forwarding request [%s] from client %s/%d to channel %s/%d" % (
- # client["request"].replace("\n","\\n"), sitename,
cls.fileno(), sitename, chs.fileno()))
try:
chs.send(client["request"])
if not client["request"].startswith("COMMAND"):
@@ -356,14 +352,10 @@ def receive_request(sitename, client):
# Note: Multisite can send several requests at once. For example
# a command and a wait query (reschedule button)
request = client.get("nextrequest", "")
- # if request:
- # log("HIRN: client %s/%d noch ein Rest vom letzten mal: [%s]" % (
- # sitename, client["socket"].fileno(),
request.replace("\n", "\\n")))
client["nextrequest"] = ""
while "\n\n" not in request:
try:
chunk = client["socket"].recv(65536)
- # log("HIRN: CHUNK von client: [%s]" %
chunk.replace("\n", "\\n"))
request += chunk
except socket.error, e:
if e.errno == 104: # Connection reset by peer
@@ -374,12 +366,9 @@ def receive_request(sitename, client):
if not chunk:
log("Client %s/%d closed connection." % (sitename,
client["socket"].fileno()))
return None
- # log("HIRN: VOR DEM SPLITTEN: [%s]" % request)
end = request.index("\n\n")
client["nextrequest"] = request[end+2:]
request = request[:end+2]
- #log("HIRN: Diesesmal: [%s], naechstes Mal: [%s]" % (
- # request.replace("\n", "\\n"),
client["nextrequest"].replace("\n", "\\n")))
return request