aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-04-27 17:17:17 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-04-27 17:17:17 +0000
commit2469090e38855fe5615a98619a5ddc05a6476703 (patch)
treea95e2b3cb125000261803cedb7325dc193fdd3b6
parent65c81526be4ca3960d4ae0df669940256db41bd3 (diff)
downloadsos-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-xsos/sosreport.py3
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 ...")