Alon Bar-Lev has uploaded a new change for review.

Change subject: core: always dump environment at termination
......................................................................

core: always dump environment at termination

this had proven useful for problem determination.

Change-Id: I5eec90ced28ecbcbb968881ac723e2db60d38298
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M src/otopi/context.py
M src/plugins/otopi/core/misc.py
2 files changed, 8 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/60/17360/1

diff --git a/src/otopi/context.py b/src/otopi/context.py
index c152b6d..85c80a0 100644
--- a/src/otopi/context.py
+++ b/src/otopi/context.py
@@ -141,7 +141,6 @@
                         exception=e,
                     )
                 )
-            self.dumpEnvironment()
             self.notify(event=self.NOTIFY_ERROR)
 
     (
diff --git a/src/plugins/otopi/core/misc.py b/src/plugins/otopi/core/misc.py
index 1946d34..02268c0 100644
--- a/src/plugins/otopi/core/misc.py
+++ b/src/plugins/otopi/core/misc.py
@@ -77,5 +77,13 @@
         # of something before validation
         self.context.dumpEnvironment()
 
+    @plugin.event(
+        stage=plugin.Stages.STAGE_PRE_TERMINATE,
+    )
+    def _preTerminate(self):
+        # as we want full dump and not delta
+        # of something before termination
+        self.context.dumpEnvironment()
+
 
 # vim: expandtab tabstop=4 shiftwidth=4


-- 
To view, visit http://gerrit.ovirt.org/17360
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5eec90ced28ecbcbb968881ac723e2db60d38298
Gerrit-PatchSet: 1
Gerrit-Project: otopi
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to