From d66c193e549d28550dd2a9c7839b078ebc3b0ff2 Mon Sep 17 00:00:00 2001 From: Dan Bungert Date: Wed, 29 Mar 2023 17:57:58 -0600 Subject: [PATCH] errorreport: all recent syslog Some outputs only appear in the journal. --- subiquity/common/errorreport.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subiquity/common/errorreport.py b/subiquity/common/errorreport.py index 651c6c8d..275287a5 100644 --- a/subiquity/common/errorreport.py +++ b/subiquity/common/errorreport.py @@ -18,6 +18,7 @@ import fcntl import json import logging import os +import re import sys import time import traceback @@ -138,6 +139,7 @@ class ErrorReport(metaclass=urwid.MetaSignals): if not self.reporter.dry_run: self.pr.add_hooks_info(None) 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 # machine, we make some slightly obscure alterations to the report # to make this go better.