diff options
author | Matt Wilson <msw@redhat.com> | 2001-09-06 01:29:57 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-09-06 01:29:57 +0000 |
commit | 30daad8448cc3120f9c0303c6efdc2f49c5bb918 (patch) | |
tree | 6f3b8beb1d1918148b50559f38f06de550d7fd4d /exception.py | |
parent | fdb477ae284068ed0ade7b5921ba11020482b095 (diff) | |
download | anaconda-30daad8448cc3120f9c0303c6efdc2f49c5bb918.tar.gz anaconda-30daad8448cc3120f9c0303c6efdc2f49c5bb918.tar.xz anaconda-30daad8448cc3120f9c0303c6efdc2f49c5bb918.zip |
gather more info -- we need VC3 outputted to /tmp somewhere too
Diffstat (limited to 'exception.py')
-rw-r--r-- | exception.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/exception.py b/exception.py index 08e319acb..102715d1d 100644 --- a/exception.py +++ b/exception.py @@ -141,6 +141,22 @@ def dumpException(out, text, tb, dispatch): out.write("\nException occured during state dump:\n") traceback.print_exc(None, out) + for file in ("/tmp/syslog", "/tmp/netinfo", + "/mnt/sysimage/tmp/install.log", + "/mnt/sysimage/tmp/upgrade.log"): + try: + f = open(file, 'r') + line = "\n\n%s:\n" % (file,) + while line: + out.write(line) + line = f.readline() + f.close() + except IOError: + pass + except: + out.write("\nException occured during %s file copy:\n" % (file,)) + traceback.print_exc(None, out) + def handleException(dispatch, intf, (type, value, tb)): list = traceback.format_exception (type, value, tb) text = joinfields (list, "") |