Log job identifiers in an attempt to find the queue name bug.
We have a bug where log file paths sometimes have the wrong queue
name in them. I am hoping that adding some more debugging here
will help me find where this bug is occuring.
Change-Id: Id75f2e824a1a6c18695ec541752813d9708fd7cf
diff --git a/turbo_hipster/lib/utils.py b/turbo_hipster/lib/utils.py
index 9f69d1a..424baab 100644
--- a/turbo_hipster/lib/utils.py
+++ b/turbo_hipster/lib/utils.py
@@ -23,6 +23,9 @@
import time
+log = logging.getLogger('lib.utils')
+
+
class GitRepository(object):
""" Manage a git repository for our uses """
@@ -239,9 +242,13 @@
def determine_job_identifier(zuul_arguments, job, unique):
if 'build:' in job:
job = job.split('build:')[1]
- return os.path.join(zuul_arguments['ZUUL_CHANGE'][:2],
+
+ path = os.path.join(zuul_arguments['ZUUL_CHANGE'][:2],
zuul_arguments['ZUUL_CHANGE'],
zuul_arguments['ZUUL_PATCHSET'],
zuul_arguments['ZUUL_PIPELINE'],
job,
unique[:7])
+ log.info('Converted args: %s, job: %s and unique: %s to %s'
+ % (zuul_arguments, job, unique, path))
+ return path