add 2 extra debug logging statements to the Upload controller

This commit is contained in:
Damien Churchill 2010-03-21 18:59:05 +00:00
parent c03f519f9a
commit 6aacc6e75c
1 changed files with 3 additions and 0 deletions

View File

@ -152,6 +152,7 @@ class Upload(resource.Resource):
})
tempdir = tempfile.mkdtemp(prefix="delugeweb-")
log.debug("uploading files to %s", tempdir)
filenames = []
for upload in request.args.get("file"):
@ -159,6 +160,8 @@ class Upload(resource.Resource):
os.write(fd, upload)
os.close(fd)
filenames.append(fn)
log.debug("uploaded %d file(s)", len(filenames))
request.setHeader("content-type", "text/html")
request.setResponseCode(http.OK)
return compress(common.json.dumps({