summaryrefslogtreecommitdiffstats
path: root/src/Hooks/abrt_exception_handler.py.in
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-02-08 18:18:38 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-02-08 18:18:38 +0100
commit7d383cb18b8d2ed885d072e7278ab3171a83dadd (patch)
tree211f26f6daf0b551cb119a3738a026ae12176e1c /src/Hooks/abrt_exception_handler.py.in
parent8468ed5328f3126c9809cab8b7cb79b44781bb29 (diff)
parented333008ad25e2ca4d590cf2052337ef6cf1af71 (diff)
Merge branch 'master' into rhel6
Diffstat (limited to 'src/Hooks/abrt_exception_handler.py.in')
-rw-r--r--src/Hooks/abrt_exception_handler.py.in11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/Hooks/abrt_exception_handler.py.in b/src/Hooks/abrt_exception_handler.py.in
index e21a530..89f3013 100644
--- a/src/Hooks/abrt_exception_handler.py.in
+++ b/src/Hooks/abrt_exception_handler.py.in
@@ -27,7 +27,7 @@ import syslog
import subprocess
-def write_dump(pid, tb_uuid, tb):
+def write_dump(pid, tb):
executable = "Exception raised from python shell"
if sys.argv[0]:
# FIXME: is this reliable?!
@@ -38,7 +38,6 @@ def write_dump(pid, tb_uuid, tb):
command = ["/usr/libexec/abrt-hook-python"]
command.append("--pid=%s" % pid)
command.append("--executable=%s" % executable)
- command.append("--uuid=%s" % tb_uuid)
helper = subprocess.Popen(command, stdin=subprocess.PIPE)
helper.communicate(tb)
@@ -61,7 +60,6 @@ def handleMyException((etype, value, tb)):
try:
import os.path
- from hashlib import md5
import traceback
# "-c" appears in this case:
@@ -83,14 +81,11 @@ def handleMyException((etype, value, tb)):
ll[0] = os.path.basename(tblast[0])
tblast = ll
- m = md5()
ntext = ""
for t in tblast:
ntext += str(t) + ":"
- m.update(str(t))
- tb_uuid = str(m.hexdigest())[:8]
- text = "Summary: TB" + tb_uuid + " " + ntext
+ text = ntext
text += extxt[0]
text += "\n"
text += "".join(elist)
@@ -107,7 +102,7 @@ def handleMyException((etype, value, tb)):
pass
# add coredump saving
- write_dump(os.getpid(), tb_uuid, text)
+ write_dump(os.getpid(), text)
except:
# silently ignore any error in this hook,