# HG changeset patch # User souliane # Date 1388149146 -3600 # Node ID 0ca441ba4317909ff5e8e601a9033f9d64ac73e0 # Parent 44b46db7dfefea6f913afdc2c309c72c6f777346 server_side: removed unecessary debug info during a file upload diff -r 44b46db7dfef -r 0ca441ba4317 libervia.tac --- 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)