Skip to content

Commit

Permalink
build: include journal errors and adsys logs in apport report (#949)
Browse files Browse the repository at this point in the history
To reduce the back and forth with bug reporters, update our apport hook
to attach more helpful information to reports.

We now include journal errors around the report timestamp (+/- 10
minutes), and any journal messages containing "adsys" -- this includes
logs emitted by the service and possibly more messages referring to
adsys which do not necessarily come from the service.

Fixes #944 / UDENG-2489
  • Loading branch information
GabrielNagy authored Mar 21, 2024
2 parents 3e099ee + 046c2c7 commit 68b353f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions debian/adsys.apport
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
'''

import apport.hookutils
import re

def add_info(report):
apport.hookutils.attach_related_packages(report, ["sssd", "python3-samba"])
apport.hookutils.attach_journal_errors(report, 600)
report['Syslog'] = apport.hookutils.recent_syslog(re.compile("adsys"))

0 comments on commit 68b353f

Please sign in to comment.