From: Ciro Scognamiglio Date: Mon, 18 Aug 2014 20:54:26 +0000 (+0200) Subject: fixed small bug when handling exception X-Git-Tag: myslice-1.0~4^2~2 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=6837910efeb308b2bbb50228731669b90e9f1906 fixed small bug when handling exception --- diff --git a/activity/__init__.py b/activity/__init__.py index 854897d1..ab2cd0d3 100644 --- a/activity/__init__.py +++ b/activity/__init__.py @@ -32,7 +32,7 @@ if config.activity and config.activity.server : server = config.activity.server else : # default log server - server = "http://athos.ipv6.lip6.fr/log" + server = "http://athos.ipv6.lip6.fr/activity/push/log" def logWrite(request, action, message): @@ -60,7 +60,7 @@ def logWrite(request, action, message): result = urllib2.urlopen(server, urllib.urlencode(log)) content = result.read() except urllib2.URLError as e: - print "===============>> activity: connection to " + url + " impossible, could not log action" + print "===============>> activity: connection to " + server + " impossible, could not log action" def log(request, action, message): # Create a new thread in Daemon mode to send the log entry