[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.46-27-g960eea7

Andreas Beckmann debian at abeckmann.de
Fri Sep 21 08:17:14 UTC 2012


The following commit has been merged in the develop branch:
commit 54ba206cbff593f01ef25511b0b0e901a0243b08
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Wed Sep 19 08:00:26 2012 +0200

    p: print a final message before terminating in the panic() handler
    
    this allows to discover premature termination resulting in truncated logs
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/debian/changelog b/debian/changelog
index b351b21..cb9a24d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ piuparts (0.47) UNRELEASED; urgency=low
   * piuparts.py:
     - Add to ignored_files/ignored_patterns:
       + /var/log/dbconfig-common/dbc.log
+    - Print a final message before terminating in the panic() handler.
   * piuparts-master.py:
   * piuparts-slave.py:
   * piuparts-report.py:
diff --git a/piuparts.py b/piuparts.py
index 5539b34..87eff97 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -384,6 +384,7 @@ def panic(exit=1):
     for i in range(counter):
         if i in on_panic_hooks:
             on_panic_hooks[i]()
+    logging.error("piuparts run ends.")
     sys.exit(exit)
 
 

-- 
piuparts git repository



More information about the Piuparts-commits mailing list