[Pkg-matrix-maintainers] Bug#927057: 1Gb of logs is too much

Antoine Beaupré anarcat at debian.org
Sat Apr 27 17:09:19 BST 2019


On 2019-04-24 16:23:15, Willem Mulder wrote:
> On Wed, 24 Apr 2019 01:03:35 +0000 Linda Lapinlampi <linda at lindalap.fi>
> wrote:
>> I also agree the logs should be compressed on daily rotation, but it
>> remains unclear to me how one would change this in Synapse without big
>> hacky behaviors. Preferably I'd use logrotate(8) if at all possible.
>>
>> This might be helpful:
>> https://docs.python.org/3/library/logging.handlers.html
>>
>> So maybe change logging.handlers.RotatingFileHandler in debian/log.yaml
>> to WatchFileHandler (use with logrotate(8)) if I've understood
>> correctly. TimedRotatingFileHandler is an alternative to let Python
> manage log
>> rotation by itself, but no logs will be compressed then.
>
> On my personal setup, I have the following changes to log.yaml:

[...]

I believe the attached debdiff fixes this problem.

A.

-- 
Nothing in life is to be feared, it is only to be understood.
Now is the time to understand more, so that we may fear less.
                         - Marie Curie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: matrix-synapse_0.99.2-3.1.debdiff
Type: text/x-patch
Size: 2034 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-matrix-maintainers/attachments/20190427/df15b452/attachment.bin>


More information about the Pkg-matrix-maintainers mailing list