diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-04-27 17:17:17 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-04-27 17:17:17 +0000 |
commit | 2469090e38855fe5615a98619a5ddc05a6476703 (patch) | |
tree | a95e2b3cb125000261803cedb7325dc193fdd3b6 | |
parent | 65c81526be4ca3960d4ae0df669940256db41bd3 (diff) | |
download | sos-2469090e38855fe5615a98619a5ddc05a6476703.tar.gz |
formatted exc_info
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@947 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rwxr-xr-x | sos/sosreport.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py index 03013175..58cc23e6 100755 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -698,8 +698,9 @@ No changes will be made to your system. raise else: error_log = open(logdir + "/sosreport-plugin-errors.txt", "a") + etype, eval, etrace = sys.exc_info() traceback.print_exception(etype, eval, etrace, limit=2, file=sys.stdout) - error_log.write(traceback.format_exc) + error_log.write(traceback.format_exc()) error_log.close() print _(" Running plugins. Please wait ...") |