canonical / ubuntu-pro-client

Ubuntu Pro Client for offerings from Canonical
https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/
GNU General Public License v3.0
52 stars 69 forks source link

Bug: check file size of automatic log upload for bug reports #3069

Open orndorffgrant opened 3 months ago

orndorffgrant commented 3 months ago

Description of the bug

If a log is very large, our hook will try to attach it to the bug. This may fail.

Expected behavior

If a log is very large, we should only take the most recent X lines

Current behavior

The file size is not checked. If a log is very large, our hook will try to attach it to the bug.

Additional context

This hasn't caused problems yet, but it could, especially if we end up with a bug that floods the logs