Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errorreport: all recent syslog #1625

Merged
merged 1 commit into from Mar 30, 2023
Merged

Conversation

dbungert
Copy link
Collaborator

Some outputs only appear in the journal.

Some outputs only appear in the journal.
@dbungert dbungert requested a review from ogayot March 30, 2023 01:00
Copy link
Member

@ogayot ogayot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Seems like the command used will be ["journalctl", "--system", "--quiet", "-b", "-a"].
https://github.com/canonical/apport/blob/22f4525839cd5f164bc0635148d2e1cade815566/apport/hookutils.py#L635

If so, we might miss out on the commands run using systemd-run --user (because of the --system option); which is a bit of a shame but this is already a great step.

@ogayot
Copy link
Member

ogayot commented Mar 30, 2023

I've opened a PR on apport: canonical/apport#150

The proposal is to introduce:

recent_syslog(re.compile("."), journald_system_only=False)

but this is not something we can rely on yet.

@dbungert dbungert merged commit 6a402a8 into canonical:main Mar 30, 2023
7 checks passed
@dbungert dbungert deleted the crash-report branch March 30, 2023 13:01
@dbungert dbungert mentioned this pull request Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants