the log file should be compressed at creation time

Bug #1216312 reported by Jérôme
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
popularity-contest (Ubuntu)
New
Undecided
Unassigned

Bug Description

The compression of /var/log/popularity-contest is done at least one time when the log is being rotated.

The host user is usually not interested by the content of this file (he can get the list of packages with more user friendly tools).

This file would possibly be compressed a second time, while sending it to the recipient (email or http server).

We would make only the below change :
----------------------------
j@lt:~$ diff /etc/cron.daily/popularity-contest popularity-contest
30c30
< POPCON=/var/log/popularity-contest
---
> POPCON=/var/log/popularity-contest.gz
49c49
< savelog -c 7 popularity-contest >/dev/null
---
> savelog -c 7 -l popularity-contest.gz >/dev/null
67c67
< run_popcon > $POPCON
---
> run_popcon | gzip --best > $POPCON
j@lt:~$
----------------------------

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: popularity-contest 1.53ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-52.78-generic 3.2.48
Uname: Linux 3.2.0-52-generic i686
ApportVersion: 2.0.1-0ubuntu17.4
Architecture: i386
Date: Sat Aug 24 15:02:41 2013
InstallationMedia: Xubuntu 12.04.2 LTS "Precise Pangolin" - Release i386 (20130213)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=fr:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: popularity-contest
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jérôme (jerome-bouat) wrote :
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.