Commit 96df4fc2 by Julia Hansbrough

Merge pull request #18 from edx/flowerhack/logging-update

Changed logging message to yield more information
parents d6cf8b68 c1b496b7
...@@ -167,9 +167,6 @@ def jail_code(command, code=None, files=None, argv=None, stdin=None, ...@@ -167,9 +167,6 @@ def jail_code(command, code=None, files=None, argv=None, stdin=None,
os.mkdir(tmptmp) os.mkdir(tmptmp)
os.chmod(tmptmp, 0777) os.chmod(tmptmp, 0777)
if slug:
log.debug("Executing jailed code %s in %s", slug, homedir)
argv = argv or [] argv = argv or []
# All the supporting files are copied into our directory. # All the supporting files are copied into our directory.
...@@ -211,6 +208,9 @@ def jail_code(command, code=None, files=None, argv=None, stdin=None, ...@@ -211,6 +208,9 @@ def jail_code(command, code=None, files=None, argv=None, stdin=None,
stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
) )
if slug:
log.debug("Executing jailed code %s in %s, with PID %s", slug, homedir, subproc.id)
# Start the time killer thread. # Start the time killer thread.
realtime = LIMITS["REALTIME"] realtime = LIMITS["REALTIME"]
if realtime: if realtime:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment