Change in vdsm[master]: ifcfg: Log unhandled exception for new Thread

mlipchuk at redhat.com mlipchuk at redhat.com
Wed Jan 8 23:38:08 UTC 2014


Maor Lipchuk has uploaded a new change for review.

Change subject: ifcfg: Log unhandled exception for new Thread
......................................................................

ifcfg: Log unhandled exception for new Thread

Ading a traceback log for unhandled exceptions,
when openning a new thread, so it will not die silently.
Since the log in ifcfg instance is inaccessible	from the decorator,
we use the default root logger.

Change-Id: I2ce44b4586e85438898fcdcd2d62d80813caa5ba
Signed-off-by: Maor Lipchuk <mlipchuk at redhat.com>
---
M vdsm/netconf/ifcfg.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/85/23085/1

diff --git a/vdsm/netconf/ifcfg.py b/vdsm/netconf/ifcfg.py
index 52b95b1..8431e80 100644
--- a/vdsm/netconf/ifcfg.py
+++ b/vdsm/netconf/ifcfg.py
@@ -738,6 +738,7 @@
 
 def ifup(iface, async=False):
     "Bring up an interface"
+    @utils.traceback()
     def _ifup(netIf):
         rc, out, err = utils.execCmd([constants.EXT_IFUP, netIf], raw=False)
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2ce44b4586e85438898fcdcd2d62d80813caa5ba
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <mlipchuk at redhat.com>


More information about the vdsm-patches mailing list