summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-08-15 16:26:37 +0000
committerMatt Wilson <msw@redhat.com>2001-08-15 16:26:37 +0000
commitac25873572add4cb5ff688cc426bdc6405980341 (patch)
treec51c631d82224c589fe190fc3b140bfa8dc7d44c /exception.py
parent364344ddd86584f5ab9648ba06c605892e980d11 (diff)
downloadanaconda-ac25873572add4cb5ff688cc426bdc6405980341.tar.gz
anaconda-ac25873572add4cb5ff688cc426bdc6405980341.tar.xz
anaconda-ac25873572add4cb5ff688cc426bdc6405980341.zip
get the floppyDevice from the right place, reduce the size of the dump (#51816)
Diffstat (limited to 'exception.py')
-rw-r--r--exception.py20
1 files changed, 16 insertions, 4 deletions
diff --git a/exception.py b/exception.py
index 66d7d7bd9..e0e695256 100644
--- a/exception.py
+++ b/exception.py
@@ -27,6 +27,7 @@ from flags import flags
dumpHash = {}
+# XXX do length limits on obj dumps.
def dumpClass(instance, fd, level=0):
# protect from loops
if not dumpHash.has_key(instance):
@@ -64,13 +65,24 @@ def dumpException(out, text, tb, dispatch):
dispatch.id.hdList = None
dispatch.id.comps = None
-# dispatch.intf = None
-# dispatch.dispatch = None
-
# we don't need to know passwords
dispatch.id.rootPassword = None
dispatch.id.accounts = None
+# dispatch.intf = None
+# dispatch.dispatch = None
+
+ try:
+ if dispatch.id.xconfig and dispatch.id.xconfig.monitor:
+ dispatch.id.xconfig.monitor.monlist = None
+ dispatch.id.xconfig.monitor.monids = None
+ dispatch.id.langSupport.langNicks = None
+ dispatch.id.langSupport.langList = None
+ dispatch.id.langSupport.allSupportedLangs = None
+ dispatch.intf.icw.buff = None
+ except:
+ pass
+
try:
out.write("\n\n")
dumpClass(dispatch, out)
@@ -104,7 +116,7 @@ def handleException(dispatch, intf, (type, value, tb)):
intf.__del__ ()
os.kill(os.getpid(), signal.SIGKILL)
- device = id.floppyDevice
+ device = dispatch.id.floppyDevice
file = "/tmp/floppy"
try:
isys.makeDevInode(device, file)