errorreport: all recent syslog
Some outputs only appear in the journal.
This commit is contained in:
parent
84e79faa41
commit
9ee6611eb1
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue