mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 19:10:10 +00:00
Have ipmi plugin print out traceback data when exceptions would be encountered
For now, see the errors even as they are tolerated. This allows problems to be fixed as best as possible. Ultimately, this will be logged.
This commit is contained in:
parent
b944677f85
commit
086c18c641
@ -43,8 +43,8 @@ def _ipmi_evtloop():
|
||||
except RuntimeError:
|
||||
raise
|
||||
except:
|
||||
import sys
|
||||
print sys.exc_info()[2]
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
def _process_chgs(intline):
|
||||
#here we receive functions to run in our thread
|
||||
@ -65,8 +65,8 @@ def _process_chgs(intline):
|
||||
if len(cval) > 2:
|
||||
cval[2](rv)
|
||||
except: # assure the thread does not crash and burn
|
||||
import sys
|
||||
print sys.exc_info()[2]
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
# If we are inside a loop within pyghmi, this is our only shot
|
||||
# so we have to wake up anything that might be interested in
|
||||
# state changes here as well as the evtloop
|
||||
|
Loading…
Reference in New Issue
Block a user