[MERGE] use apport to get richer detail in bug reports.
Robert Collins
robertc at robertcollins.net
Wed Nov 8 00:45:43 GMT 2006
This patch extends the problem reporting command line UI to use
apport to report more detailed diagnostics which should help in in
getting faults reported in Malone and provides the basis for capturing
more information such as detailed logging data from the current
invocation of bzr in the future (without cluttering 'bzr.log'
unnecessarily).
As possible future work we could have the more detailed 'only useful in
cases of errors' data output to a temp file during the bzr run, and then
unlink that file as we exit *unless* we did a problem report warning to
the user.
Right now, this gathers more data for us - for instance it should let us
tell when users have pycurl or paramiko installed.
It might be an idea to add in the python information about such modules
when they are present, so that we can tell if a local install has been
done and is masking the distribution version.
I think writing all this data to a file rather than the screen is nice
because it avoids blatting a bunch of scary data to the screen and
instead gives a more detailed explanation of what has gone on and what
we need to happen - and all the 'scary details' are in the file which
devs will be happy looking at.
When apport is not present, the old interface is used. I think it would
be a good idea to change that to a file-writing interface as well, but
wasn't sure if that would get universal agreement or not ;).
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apport.patch
Type: text/x-patch
Size: 13499 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061108/280882ff/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061108/280882ff/attachment.pgp
More information about the bazaar
mailing list