diff options
author | Bryan Quigley <Bryan.Quigley@Canonical.com> | 2014-11-24 09:47:10 -0500 |
---|---|---|
committer | Adam Stokes <adam.stokes@ubuntu.com> | 2015-01-19 23:05:34 -0500 |
commit | 70d026420fe4eacfddb4abb544ded60c2a055dae (patch) | |
tree | d99993def58fb2aaf70010e7e7c655c3da4c9c61 | |
parent | 029448ae10e687e51896710065fd862c0fa66fa4 (diff) | |
download | sos-70d026420fe4eacfddb4abb544ded60c2a055dae.tar.gz |
[apport] Add information on specific crashes
The whoopsie ID let's us look the machine up
on errors.ubuntu.com for crash reports.
Partial output from /var/crash let's us
better know what crashdumps the user has without
uploading all of them.
Signed-off-by: Bryan Quigley <Bryan.Quigley@Canonical.com>
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
-rw-r--r-- | sos/plugins/apport.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sos/plugins/apport.py b/sos/plugins/apport.py index 6756c78f..c942c2de 100644 --- a/sos/plugins/apport.py +++ b/sos/plugins/apport.py @@ -25,5 +25,12 @@ class Apport(Plugin, DebianPlugin, UbuntuPlugin): def setup(self): self.add_copy_spec("/etc/apport/*") + self.add_copy_spec("/var/lib/whoopsie/whoopsie-id") + self.add_cmd_output( + "gdbus call -y -d com.ubuntu.WhoopsiePreferences \ + -o /com/ubuntu/WhoopsiePreferences \ + -m com.ubuntu.WhoopsiePreferences.GetIdentifier") + self.add_cmd_output("ls -alh /var/crash/") + self.add_cmd_output("bash -c 'grep -B 50 -m 1 ProcMaps /var/crash/*'") # vim: et ts=4 sw=4 |