Author Topic: Huge amounts of mythtv logging [edit: how to disable -v flag?]  (Read 3870 times)

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
Huge amounts of mythtv logging [edit: how to disable -v flag?]
« on: November 26, 2007, 06:27:53 pm »
Despite setting LogLevels in /etc/pluto.conf to 1 I am still getting huge amounts of mythtv logging. It seems the log level setting is ignored. How else can I fix this?


# cat /var/log/pluto/Spawn_mythfrontend_27798.log

2007-11-26 16:46:50.589 Using runtime prefix = /usr
2007-11-26 16:46:50.638 DPMS is disabled.
2007-11-26 16:46:50.884 New DB connection, total: 1
2007-11-26 16:46:50.887 Connected to database 'mythconverg' at host: dcerouter
2007-11-26 16:46:50.888 Total desktop dim: 1024x768, with 1 screen.
2007-11-26 16:46:50.916 Using screen 0, 1024x768 at 0,0
2007-11-26 16:46:50.928 Overriding GUI, width=1024, height=768 at 0,0
2007-11-26 16:46:50.928 Setting 'RunFrontendInWindow' being forced to '1'
2007-11-26 16:46:50.928 user: 0 effective user: 0 before privileged thread
2007-11-26 16:46:50.929 user: 0 effective user: 0 after privileged thread
2007-11-26 16:46:50.929 user: 0 effective user: 0 run_priv_thread
2007-11-26 16:46:50.929 Disabling Settings Cache.
2007-11-26 16:46:50.929 Clearing Settings Cache.
2007-11-26 16:46:50.930 MSqlQuery: SELECT data FROM settings WHERE value = 'DBSchemaVer' AND hostname = 'moon109' ;
2007-11-26 16:46:50.931 MSqlQuery: SELECT data FROM settings WHERE value = 'DBSchemaVer' AND hostname IS NULL;
2007-11-26 16:46:50.931 Current Schema Version: 1160
2007-11-26 16:46:50.932 MSqlQuery: SELECT data FROM settings WHERE value = 'MythFillFixProgramIDsHasRunOnce' AND hostname = 'moon109' ;
2007-11-26 16:46:50.932 Enabling Settings Cache.
2007-11-26 16:46:50.932 Clearing Settings Cache.
2007-11-26 16:46:50.932 mythfrontend version: 0.20.20070821-1 www.mythtv.org
2007-11-26 16:46:50.932 Enabled verbose msgs: all
2007-11-26 16:46:50.939 MSqlQuery: SELECT data FROM settings WHERE value = 'LCDServerHost' AND hostname = 'moon109' ;
2007-11-26 16:46:50.940 MSqlQuery: SELECT data FROM settings WHERE value = 'LCDServerHost' AND hostname IS NULL;
2007-11-26 16:46:50.941 MSqlQuery: SELECT data FROM settings WHERE value = 'LCDServerPort' AND hostname = 'moon109' ;
2007-11-26 16:46:50.941 MSqlQuery: SELECT data FROM settings WHERE value = 'LCDServerPort' AND hostname IS NULL;
2007-11-26 16:46:50.957 MSqlQuery: SELECT data FROM settings WHERE value = 'LCDEnable' AND hostname = 'moon109' ;
2007-11-26 16:46:50.958 MSqlQuery: SELECT data FROM settings WHERE value = 'Language' AND hostname = 'moon109' ;
2007-11-26 16:46:51.001 MSqlQuery: SELECT DISTINCT recgroup from recorded;
2007-11-26 16:46:51.002 MSqlQuery: SELECT DISTINCT category from recorded;
« Last Edit: November 29, 2007, 06:27:42 pm by chrisbirkinshaw »

blackoper

  • Veteran
  • ***
  • Posts: 110
    • View Profile
Re: Huge amounts of mythtv logging
« Reply #1 on: November 27, 2007, 05:48:13 am »
I believe there is a setting in the myth menu's that will change the logging. That may be what you need to do. I think it's on the general menu under setup one of the last pages.

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
Re: Huge amounts of mythtv logging
« Reply #2 on: November 29, 2007, 06:26:48 pm »
That is only relevant for SQL logging. The problem is here:

dcerouter_34954:~# ps aux | grep mythfrontend
root      6045  0.0  0.1   2896   764 pts/22   R+   17:00   0:00 grep mythfrontend
root      9254  0.0  0.1   2568   968 pts/10   S    15:55   0:00 /bin/sh /usr/bin/mythfrontend -v all -w mythfrontend -geometry 1024x768
root      9272  1.0  8.9 160580 45976 pts/10   Sl   15:55   0:39 /usr/bin/mythfrontend.real -v all -w mythfrontend -geometry 1024x768


How can I remove the v flag?

orionsune

  • Veteran
  • ***
  • Posts: 133
    • View Profile
Re: Huge amounts of mythtv logging [edit: how to disable -v flag?]
« Reply #3 on: March 03, 2008, 01:42:52 am »
I'm curious if this was ever solved.  I am having a problem where the "-v all" parameter causes mythtv to freeze.  Problem was troubleshot in this thread: http://forum.linuxmce.org/index.php?topic=4029.0

Basically, if I run mythtv from kde usinng the same command line parameters as lmce uses, then I get freeze.  I started removing paramters one at a time and running mythfrontend again, until it stopped freezing.   When I got to " -v all" and removed it, I was left with executing mythfrontend with no paramteres, and it didn't freeze.  So I run mythfrontend again wtih every paramter EXCEPT "-v all" and it never froze.  So I switched back and forth with that parameter about 20 times to make sure... if I run mythfrontend with "-v all" i get freeze within 1 - 20 seconds like clockwork, if I run it without the "-v all" it never freezes, longest recorded time without freezing was 5 hours with no freeze.

So does anyone know whats calling that command so I can remove the -v parameter
entia non sunt multiplicanda praeter necessitatem

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
Re: Huge amounts of mythtv logging [edit: how to disable -v flag?]
« Reply #4 on: March 05, 2008, 12:43:08 pm »
The lmce mythtv wrapper calls it. So no way to change it!

Hoping the switch to VDR will solve this.

Logging in general is a problem in lmce. The end user of such an appliance will not accept the current message from the devs which is: if the system crashes because the root fs is full of logs, then there must be a fault somewhere. I agree, but it should fail in a more clean way. Perhaps when the logs dir gets over 1GB it should start deleting stuff? my log directory frequently goes over 4Gb per MD and brings down the whole system.



orionsune

  • Veteran
  • ***
  • Posts: 133
    • View Profile
Re: Huge amounts of mythtv logging [edit: how to disable -v flag?]
« Reply #5 on: March 05, 2008, 10:22:35 pm »
[SOLVED!!!!]
Quote
The lmce mythtv wrapper calls it. So no way to change it!
Actually...  see my thread.. http://forum.linuxmce.org/index.php?topic=4029.0

I downloaded the source... removed the "-v all" option, recompiled, copied the binary in it's place, rebooted, and 2 days now, no freeze.
entia non sunt multiplicanda praeter necessitatem

kir

  • Guru
  • ****
  • Posts: 183
    • View Profile
Re: Huge amounts of mythtv logging [edit: how to disable -v flag?]
« Reply #6 on: March 07, 2008, 12:10:27 pm »
(copying from another thread)

The corresponding Mantis issue was resolved recently: http://mantis.linuxmce.org/view.php?id=4014
And please check the update here (you can get the latest binary with fix): http://wiki.linuxmce.org/index.php/KnownIssues_0710_Beta4