errorreport: all recent syslog

Some outputs only appear in the journal.
This commit is contained in:
Dan Bungert 2023-03-29 17:57:58 -06:00
parent 8759105e08
commit d66c193e54
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ import fcntl
import json import json
import logging import logging
import os import os
import re
import sys import sys
import time import time
import traceback import traceback
@ -138,6 +139,7 @@ class ErrorReport(metaclass=urwid.MetaSignals):
if not self.reporter.dry_run: if not self.reporter.dry_run:
self.pr.add_hooks_info(None) self.pr.add_hooks_info(None)
apport.hookutils.attach_hardware(self.pr) apport.hookutils.attach_hardware(self.pr)
self.pr['Syslog'] = apport.hookutils.recent_syslog(re.compile('.'))
# Because apport-cli will in general be run on a different # Because apport-cli will in general be run on a different
# machine, we make some slightly obscure alterations to the report # machine, we make some slightly obscure alterations to the report
# to make this go better. # to make this go better.