]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
add debug
authorHolger Levsen <holger@layer-acht.org>
Wed, 2 Nov 2011 12:05:35 +0000 (13:05 +0100)
committerHolger Levsen <holger@layer-acht.org>
Wed, 2 Nov 2011 12:05:35 +0000 (13:05 +0100)
kernel_persistence.py

index 197147443c2c24ea452506a3cd366415dae6f5cb..2c5d5c6eae5a6cbd727b759cf9ef6b0d2c2163f7 100644 (file)
@@ -50,6 +50,7 @@ class KernelVersion(Base):
 def get_last_kernel_revision_obj(branch):
     session = Session()
     logger.debug('Getting kernel revision from persistence')
+
     if branch == 'master' or branch.startswith('hotfix'):
       persistence_identifier = 'master'
     elif branch.startswith('release'):
@@ -57,6 +58,7 @@ def get_last_kernel_revision_obj(branch):
     else:
       # FIXME: feature branch handling
       persistence_identifier = 'develop'
+    logger.debug('branch = %s, persistence_identifier = %s' % (branch, persistence_identifier))
 
     try:
         answ = session.query(KernelVersion).filter(