VideoCache

Incorrect Logs file rotation

by arigatox on 9 Apr 2010

I'm using v1.9.4 and I started to notice some problem in the log file rotation system.
This is my log configuration:

logdir = /var/log/videocache/
max_logfile_size = 1
max_logfile_backups = 20

And this is my /var/log/videocache/ content:

[videocache]# ll /var/log/videocache
total 1760
-rw-r----- 1 squid squid       0 abr  8 23:22 videocache.log
-rw-r----- 1 squid squid       0 abr  8 23:22 videocache.log.1
-rw-r--r-- 1 squid squid 1797257 abr  9 09:24 videocache.log.2

As you can see on the dates, new logs are appended to videocache.log.2, and that file has exceede the maximum "1mb" configured.

I now that this is not a critic topic, but it could generate problems in the future if rotation never takes place.

Natalio.

2 Answers

by Kulbir Saini on 10 Apr 2010

Hi!

Thanks for reporting. Please mention your operating system and python version being used currently. I'll look at it and will report back whenever its fixed.

Thank You!

by arigatox on 13 Apr 2010

My system info:

[root]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@webserver ~]# uname -a
Linux webserver 2.6.18-164.15.1.el5 #1 SMP Wed Mar 17 11:37:14 EDT 2010 i686 i686 i386 GNU/Linux

And here is my python info:

[root]# rpm -qa | grep python
libxml2-python-2.6.26-2.1.2.8
python-elementtree-1.2.6-5
python-urlgrabber-3.1.0-5.el5
audit-libs-python-1.7.13-2.el5
python-sqlite-1.1.7-1.2.1
gamin-python-0.1.7-8.el5
python-iniparse-0.2.3-4.el5
rpm-python-4.4.2.3-18.el5
dbus-python-0.70-9.el5_4
python-2.4.3-27.el5
libselinux-python-1.33.4-5.5.el5

You need to sign in. Please sign in to add answer to this question.