[mythtv-users] --logfile vs. --logpath

R. G. Newbury newbury at mandamus.org
Sat May 19 03:00:27 UTC 2012


On 05/18/2012 01:39 PM, Gavin Hurlbut wrote:
> On Fri, May 18, 2012 at 10:35 AM, R. G. Newbury<newbury at mandamus.org>  wrote:
>> OK, so I will set the cron to delete them every hour or so..
>> And turn off the cron job if I need to debug anything.
>> But I have never had a problem with preview generation.
>
> Or, you could use logrotate, and change the prune time in there.  The
> way you are doing things is not wise as you are deleting log files
> that are actively being written to at the time of the cronjob.  Also,
> *again*, it makes it impossible to debug if/when something goes wrong.

Hell, you guys have been writing such good code for years that I cannot 
now remember when I last had to use a logfile to debug something. I 
think it was back when I had a Via Epia motherboard, with an Intel 
graphics chip running xvmc. IIRC, that motherboard died when a dinosaur 
stepped on it...or maybe it was a wooly mammoth.

> Seriously, there's no point to being OCD with log directories.
>  A 2k > file per preview isn't going to kill you.  You could just run
> logrotate once a day and it would keep your log dir clean.

Actually, my ... irritation with the new logging scheme is that it 
produces so many small files for most processes. I just killed 384 
mythpreviewgen files... and I only have about 80 tv files ATM. I could 
easily live with one file for preview, commflag and filldatabase. To 
make ANY use of them, it is far easier to cat them together and look at 
that....

Geoff




More information about the mythtv-users mailing list