fixed small bug when handling exception
[myslice.git] / activity / __init__.py
index 677424f..ab2cd0d 100644 (file)
@@ -31,8 +31,8 @@ else :
 if config.activity and config.activity.server :
     server = config.activity.server
 else :
-    # secret will be necessary
-    server = "http://athos.ipv6.lip6.fr/log"
+    # default log server
+    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 "Warning: 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