diff libervia.tac @ 308:0ca441ba4317

server_side: removed unecessary debug info during a file upload
author souliane <souliane@mailoo.org>
date Fri, 27 Dec 2013 13:59:06 +0100
parents 4f221f34bdc7
children 05e264e96a1c
line wrap: on
line diff
--- a/libervia.tac	Thu Dec 19 13:56:47 2013 +0100
+++ b/libervia.tac	Fri Dec 27 13:59:06 2013 +0100
@@ -861,7 +861,6 @@
            - except login, every method is jsonrpc
            - user doesn't need to be authentified for isRegistered, but must be for all other methods
         """
-        #start = time.time()
         filename = self._getFileName(request)
         filepath = os.path.join(self.upload_dir, filename)
         #FIXME: the uploaded file is fully loaded in memory at form parsing time so far
@@ -873,8 +872,6 @@
             f.write(request.args[self.NAME][0])
 
         def finish(d):
-            #end = time.time()
-            #print "time spent in render: %fs" % (end - start)
             error = isinstance(d, Exception) or isinstance (d, Failure)
             request.write('KO' if error else 'OK')
             # TODO: would be great to re-use the original Exception class and message
@@ -918,7 +915,6 @@
         to be called followed by its arguments.
         """
         profile = ISATSession(request.getSession()).profile
-        debug("fichier écrit:", filepath)  # /!\ unicode output raises UnicodeDecodeError
         return ("setAvatar", filepath, profile)