瀏覽代碼

Better logging

shin- 11 年之前
父節點
當前提交
27c45a8674
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      stackbrew/brew/v2.py
  2. 1 1
      stackbrew/lib/db.py

+ 1 - 0
stackbrew/brew/v2.py

@@ -328,6 +328,7 @@ class LocalBuilder(StackbrewBuilder):
                     raise RuntimeError(
                         'Error while pushing: {0}'.format(pushlog)
                     )
+                logger.info('Succesfully pushed {0}'.format(repo_name))
             except Exception as e:
                 exc = e
                 continue

+ 1 - 1
stackbrew/lib/db.py

@@ -41,7 +41,7 @@ class SummaryV2(object):
                 f.write(build_result)
         ins = summary_item.insert().values(
             repo_name=repo.name,
-            exception=str(exc),
+            exception=str(exc) if exc else None,
             commit_id=version[1],
             image_id=img_id,
             source_desc=version[0],