log testbed and facility
authorCiro Scognamiglio <ciro.scognamiglio@cslash.net>
Fri, 3 Oct 2014 15:06:23 +0000 (17:06 +0200)
committerCiro Scognamiglio <ciro.scognamiglio@cslash.net>
Fri, 3 Oct 2014 15:06:23 +0000 (17:06 +0200)
activity/__init__.py

index 15b4e06..dfb7007 100644 (file)
@@ -68,7 +68,7 @@ def logWrite(request, action, message, objects = None):
     
     try :
         result = urllib2.urlopen(server, urllib.urlencode(log))
-        print "===============>> activity: " + action + " <" + request.user + "> " + message
+        print "===============>> activity: %s <%s> " % (action, request.user,message)
         content = result.read()
     except urllib2.URLError as e:
         print "===============>> activity: connection to " + server + " impossible, could not log action"