]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debug
authorHolger Levsen <holger@layer-acht.org>
Fri, 12 Oct 2012 15:58:08 +0000 (17:58 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 12 Oct 2012 15:58:08 +0000 (17:58 +0200)
db_add.py

index d5e32ae1bc2fb65063b799733800ac5510ccfdac..2cc22cdcec9cafe592429ee84967261f082fed23 100755 (executable)
--- a/db_add.py
+++ b/db_add.py
@@ -30,11 +30,15 @@ def db_add_job(con, name):
     return cur.fetchone()[0]
 
 def harmonize_timeformat(time):
+    logger_debug('1 time = %s' % time)
     if time != 'NULL':
         if time.isdigit():
+            logger_debug('2 time = %s' % time)
             time = "to_timestamp('%s')" % time
+            logger_debug('3 time = %s' % time)
         else:
             time = "'%s'" % time
+            logger_debug('4 time = %s' % time)
     return time
 
 def db_add_build(con, db_id, number, start, end, status):