From a0969ba84ddd9dda74ecea2a5ae109dd4d8089f0 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Fri, 22 Feb 2008 23:29:08 +0000 Subject: [PATCH] improve error reporting data git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1279 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- handlers/http_error_report.php | 11 ++++++++++- libraries/entropy.py | 9 +++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/handlers/http_error_report.php b/handlers/http_error_report.php index b961b37ef..e638c47f7 100644 --- a/handlers/http_error_report.php +++ b/handlers/http_error_report.php @@ -13,7 +13,16 @@ $message = "Hello, this is an Entropy error report.\n"; $message .= $_POST['stacktrace']; $message .= "\n\n"; $message .= $_POST['errordata']; -$message .= "\n\nArchitecture: " . $arch . "\n"; +$message .= "\n\n"; +$message .= $_POST['processes']; +$message .= "\n\n"; +$message .= $_POST['lspci']; +$message .= "\n\n"; +$message .= $_POST['dmesg']; +$message .= "\n\n"; +$message .= "Architecture: " . $arch . "\n"; +$message .= "Arguments: " . $_POST['arguments'] . "\n"; +$message .= "UID: " . $_POST['uid'] . "\n"; $message .= 'Name: ' . $name . "\n"; $message .= 'E-mail: ' . $email . "\n"; $message .= 'Description: ' . $description . "\n"; diff --git a/libraries/entropy.py b/libraries/entropy.py index dbbb50902..86870aa73 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -6716,6 +6716,15 @@ class ErrorReportInterface: self.params['version'] = etpConst['entropyversion'] self.params['errordata'] = report_data self.params['description'] = description + self.params['arguments'] = ' '.join(sys.argv) + self.params['uid'] = etpConst['uid'] + try: + import commands + self.params['processes'] = commands.getoutput('ps auxf') + self.params['lspci'] = commands.getoutput('lspci') + self.params['dmesg'] = commands.getoutput('dmesg') + except: + pass self.generated = True # params is a dict, key(HTTP post item name): value