← Back to team overview

apport-hackers team mailing list archive

[Merge] lp:~ted/apport/enable-debug into lp:apport

 

Ted Gould has proposed merging lp:~ted/apport/enable-debug into lp:apport.

Commit message:
Add Upstart user session job to include debug information.

Requested reviews:
  Sebastien Bacher (seb128)
  Apport upstream developers (apport-hackers)

For more details, see:
https://code.launchpad.net/~ted/apport/enable-debug/+merge/182530


This comes from a discussion that seb and I were having where we thought it would be cool if when apport is collecting reports, we could also get all the debug messages in the upstart logs.  Thinking about it more, I think that just having an apport job is probably the easiest way to do this.
-- 
https://code.launchpad.net/~ted/apport/enable-debug/+merge/182530
Your team Apport upstream developers is requested to review the proposed merge of lp:~ted/apport/enable-debug into lp:apport.
=== added file 'data/apport-debug-enabled.conf'
--- data/apport-debug-enabled.conf	1970-01-01 00:00:00 +0000
+++ data/apport-debug-enabled.conf	2013-08-28 02:09:45 +0000
@@ -0,0 +1,12 @@
+description "Apport Enable Debug"
+
+start on starting dbus
+task
+
+script
+	ENABLED=`grep enabled /etc/default/apport | cut -d = -f 2`
+
+	if [ "x$ENABLED" = "x1" ]; then
+		initctl set-env --global G_MESSAGES_DEBUG=all
+	fi
+end script

=== modified file 'setup.py'
--- setup.py	2012-10-01 09:56:16 +0000
+++ setup.py	2013-08-28 02:09:45 +0000
@@ -124,6 +124,7 @@
                 ('share/apport/testsuite/', glob('test/*')),
                 ('share/doc/apport/', glob('doc/*.txt')),
                 ('lib/pm-utils/sleep.d/', glob('pm-utils/sleep.d/*')),
+                ('share/upstart/sessions/', glob('data/*.conf')),
                 ] + optional_data_files,
     cmdclass=cmdclass
 )