]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
queue: fix logging of child return code
authorSage Weil <sage@inktank.com>
Tue, 14 Aug 2012 22:08:21 +0000 (15:08 -0700)
committerSage Weil <sage@inktank.com>
Tue, 14 Aug 2012 22:08:21 +0000 (15:08 -0700)
teuthology/queue.py

index cbd2f9cc846909db53f54d5a2502c376f7580480..1f5d2da5e07965bd4ceb43aca336708eac986f34 100644 (file)
@@ -135,6 +135,6 @@ def run_job(job_config, archive_path):
             child.info(': %s', line.rstrip('\n'))
         p.wait()
         if p.returncode != 0:
-            log.error('Child exited with code %s', e)
+            log.error('Child exited with code %d', p.returncode)
         else:
             log.info('Success!')