diff --git a/batchoar.py b/batchoar.py
index d6397d60e6e00bfba9e844d65b335d0599faec3b..0fe932b805557147e50c4c505150fd778ff73631 100755
--- a/batchoar.py
+++ b/batchoar.py
@@ -155,6 +155,9 @@ def main():
                 logging.warning("Job '{}' seems to have failed to launch...".format(job_name))
             else:
                 anteriors.appendleft(job_id)
+                logging.debug("OAR_JOB_ID={}".format(job_id))
+                if anterior is not None:
+                    logging.debug("ANTERIOR_JOB_ID={}".format(anterior))
         elif args.run:
             logging.warning("Job '{}' didn't return anything...".format(job_name))
         else: