Merge lp:~bregma/unity-system-compositor/lp-1676931 into lp:unity-system-compositor

Proposed by Stephen M. Webb
Status: Superseded
Proposed branch: lp:~bregma/unity-system-compositor/lp-1676931
Merge into: lp:unity-system-compositor
Diff against target: 42 lines (+16/-6)
1 file modified
debian/source_unity-system-compositor.py (+16/-6)
To merge this branch: bzr merge lp:~bregma/unity-system-compositor/lp-1676931
Reviewer Review Type Date Requested Status
Mir CI Bot continuous-integration Needs Fixing
Unity System Compositor Development Team Pending
Review via email: mp+321204@code.launchpad.net

This proposal has been superseded by a proposal from 2017-03-28.

Commit message

added the lightdm log files to the apport dump for error reporting

Description of the change

Adds the lightdm log files to the apport dump for error reporting.

Previous versions had the wrong file names and if any file failed to attach (for example, it had the wrong name) none of the files would be attached.

To post a comment you must log in.
Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Cemil Azizoglu (cemil-azizoglu) wrote :

Change the following line in test_session_switcher.cpp

class StubMirSession : public mir::frontend::Session

to

class StubMirSession : public mir::frontend::Session, public mir::frontend::SessionExtensions

and it'll work.

309. By Stephen M. Webb

merge lp:~alan-griffiths/unity-system-compositor/compatibility

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/source_unity-system-compositor.py'
2--- debian/source_unity-system-compositor.py 2013-09-06 03:07:18 +0000
3+++ debian/source_unity-system-compositor.py 2017-03-28 17:24:06 +0000
4@@ -1,3 +1,6 @@
5+#!/usr/bin/python3
6+
7+import os
8 from apport.hookutils import *
9
10 def attach_graphic_card_pci_info(report, ui=None):
11@@ -26,10 +29,18 @@
12
13 def add_info(report, ui=None):
14 attach_file_if_exists(report, '/var/log/boot.log', 'BootLog')
15- attach_root_command_outputs(report, { 'LightDMLog': 'cat /var/log/lightdm/lightdm.log',
16- 'LightDMLogOld': 'cat /var/log/lightdm/lightdm.log.old',
17- 'UnitySystemCompositorLog': 'cat /var/log/lightdm/unity-system-compositor.log',
18- 'UnitySystemCompositorLogOld': 'cat /var/log/lightdm/unity-system-compositor.log.old' })
19+
20+ display_manager_files = {}
21+ if os.path.lexists('/var/log/lightdm'):
22+ display_manager_files['LightDMLog'] = \
23+ 'test -f /var/log/lightdm/lightdm.log && cat /var/log/lightdm/lightdm.log'
24+ display_manager_files['LightDMLogOld'] = \
25+ 'test -f /var/log/lightdm/lightdm.log.1.gz && zcat /var/log/lightdm/lightdm.log.1.gz'
26+ display_manager_files['USCLog'] = \
27+ 'test -f /var/log/lightdm/unity-system-compositor.log && cat /var/log/lightdm/unity-system-compositor.log'
28+ display_manager_files['USCLogOld'] = \
29+ 'test -f /var/log/lightdm/unity-system-compositor.log.1.gz && zcat /var/log/lightdm/unity-system-compositor.log.1.gz'
30+ attach_root_command_outputs(report, display_manager_files)
31
32 report['version.libdrm'] = package_versions('libdrm2')
33 report['version.lightdm'] = package_versions('lightdm')
34@@ -45,7 +56,6 @@
35 if not add_info(report, None):
36 print("Unreportable")
37 sys.exit(1)
38- keys = report.keys()
39- keys.sort()
40+ keys = sorted(report.keys())
41 for key in keys:
42 print("[%s]\n%s\n" %(key, report[key]))

Subscribers

People subscribed via source and target branches