Module: check_mk
Branch: master
Commit: 18942064c6f5f3418ac17c1afcfc98dd85311e44
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=18942064c6f5f3…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 8 20:27:15 2013 +0200
liveproxyd: verbose print exception in logfile
---
doc/treasures/liveproxy/liveproxyd | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/treasures/liveproxy/liveproxyd b/doc/treasures/liveproxy/liveproxyd
index 11e9001..9739b79 100755
--- a/doc/treasures/liveproxy/liveproxyd
+++ b/doc/treasures/liveproxy/liveproxyd
@@ -1,7 +1,7 @@
#!/usr/bin/python
# encoding: utf-8
-import os, sys, getopt, signal, time, socket, select
+import os, sys, getopt, signal, time, socket, select, traceback
VERSION="1.2.3i1"
@@ -93,7 +93,7 @@ def liveproxyd_run():
if opt_debug:
raise
- log("Ignoring exception: %s" % e)
+ log("Ignoring exception: %s: %s" % (e, traceback.format_exc()))
def initiate_connections():
# Create new channels to target sites. Nonblocking!
@@ -404,8 +404,8 @@ def receive_response(sitename, channel):
try:
chunk = channel["socket"].recv(65536)
if not chunk:
- raise Exception("Connect closed by foreign host")
-
+ raise Exception("Connection closed by foreign host")
+
response = old_response + chunk
channel["response"] = response