You are hereForums / Bugs / Incorrect Logs file rotation

Version 1.9.9 is out. We have added support for Youtube mobile videos, Facebook, AOL and MySpace videos as well. Fixed caching issues for some already supported websites. Options to control cache directory selection algorithm, bandwidth usage by videocache, etc. More robust videocache scheduler with a lot more options and features. Have a look at changelog for more details. If you have purchased Videocache in last one year, Contact Us to claim your free upgrade. Please mention the email address using which you purchased Videocache. New users proceed to Pricing Page right now, secure your copy and enjoy caching :-) Also, check our new and simplified upgrade policy :-)

Incorrect Logs file rotation


2 replies [Last post]
Offline
Joined: Jan 7 2010
Incorrect Logs file rotation
Printer-friendly versionSend to friend

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.

admin's picture
Offline
Joined: Nov 2 2008

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!

Offline
Joined: Jan 7 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

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

My Book on Squid

Purchase/Renew

One License - USD $399
One License - USD $349*
Validity - One Year
Need more? Contact Us
*Includes free upgrades and support for one year.



For details, check pricing.

Recent comments

Who's online

There are currently 0 users and 101 guests online.