Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927395 - sys-apps/portage: add a save_summary variant to only save the summary
Summary: sys-apps/portage: add a save_summary variant to only save the summary
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-21 10:06 UTC by Pacho Ramos
Modified: 2024-03-25 18:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2024-03-21 10:06:51 UTC
Hello,

One thing I often need to remember to do on the systems I maintain is to clean old /var/log/portage/*.log files from time to time as, otherwise, they will progressively grow a lot along time.

Personally, I always set:
PORTAGE_ELOG_SYSTEM="save_summary"

Because I am (only) interested on simply reviewing summary.log after udpating the systems. However, I cannot find a way to only save that summary.log without also saving all the other full logs.

Maybe a variant could be added... or "save_summary" could be changed to have:
save -> for saving the full logs
summary -> for saving only the summary

And people wanting both would set "save summary" (both keys).

Thanks a lot
Comment 1 Zac Medico gentoo-dev 2024-03-21 15:49:47 UTC
It looks like you have PORTAGE_LOGDIR (or the older PORT_LOGDIR variable) set, and that enables build logs which are entirely separate from the elog framework.
Comment 2 Pacho Ramos gentoo-dev 2024-03-25 18:20:00 UTC
Ah, indeed, I have PORT_LOGDIR="/var/log/portage". Probably I set it many years ago to try to specify where logs in general (also the summary.log) was going to be located