snapd should log fully to the journal

Bug #1796987 reported by Dan Watkins
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
snapd
Triaged
Medium
Unassigned
snapd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Currently, one has to run (multiple) snap commands to get the "logs" of what snapd has done on a system. This is not only annoying (because the commands one has to run are dynamic based on change IDs, so it requires scripting), but also means that normal methods of collating logging information from Ubuntu systems (whether that be grabbing files from a disk or pushing to a central logging service) fail to capture what snapd was doing to a system.

To solve this, I think it would be appropriate for snapd to log the human-readable text that `snap change <id>` shows you to the systemd journal.

Revision history for this message
Dan Watkins (oddbloke) wrote :

Further to this, I believe snapd drops its record of old changes at some point, with no way of understanding what happened before its oldest recorded change. If these changes were logged, regular log rotation/retention would retain this information.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapd (Ubuntu):
status: New → Confirmed
Changed in snapd:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Paweł Stołowski (stolowski) wrote :

@Dan: This is an interesting observation.. I'll bring it up with the team. Thank you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.