Project

General

Profile

Configure Debug / Log Settings

Added by Sascha Schmidt almost 11 years ago

Due to the rejected bug (https://tvheadend.org/issues/1823) I have to configure the log manually.
After adding the commandline option "-l /home/hts/.hts/tvheadend/hts.log" to the startup tvheadend will log to this file.

But I cannot see a way to configure the loglevel. After removing "+all" from the "Debug Subsystems:" option the flood within the logfile stopped. But I cannot save this option.

Any hints?

Thanks
Sascha


Replies (5)

RE: Configure Debug / Log Settings - Added by Sascha Schmidt almost 11 years ago

Does noone else have the problem with logging of thv?

- Giving tvh the commandline argument "-l <pathtolog>" it will log to this file.
- By default tvh will log DEBUG to this file with MUCH output :-)
- It's still not possible to SAVE the debug options within the tvh webinterface.
- After a restart of tvh the service will log DEBUG output again to this file.

Hope someone can and will fix this...

Thanks
Sascha

RE: Configure Debug / Log Settings - Added by Prof Yaffle almost 11 years ago

Not sure I follow the problem...

If it helps, you can also change the logging (1) through the web interface (the little arrows and the gear in the bottom left), and (2) by changing the DEBUG statement in /etc/default/tvheadend. The first of these allows you to switch logging on and off on demand; the second will remain in force until tvh is restarted. Logs go to syslog by default.

RE: Configure Debug / Log Settings - Added by Sascha Schmidt almost 11 years ago

Yeah, I know this configuration setting. But the problem I have is that these settings are NOT saved...

After a restart of tvh the defaults came back (DEBUG everything). The only thing I could configure via command line was the "-l". So I don't have any spamming within the syslog anymore. I let tvh dump all of its messages to a dedicated logfile.

After a restart of tvh I have to manually turn of the debug loggin within the webinterface. Persists until a restart... :-(

RE: Configure Debug / Log Settings - Added by Sascha Schmidt almost 11 years ago

This is a big annoying problem... Does no one else have this problem? It's reproduceable and still floods my logs by default.

A working "save option" within the menu DEBUGGING is needed! :-)

RE: Configure Debug / Log Settings - Added by Adam Sutton almost 11 years ago

I'll consider it, but at the moment that option (as I've already said) is not intended to be set permanently. If you really need to set it permanently then you have the option by setting the appropriate command line options, but I'm rather concerned about it being permanently set through the UI.

Look at output from --help, and specifically the --debug and --trace options.

Select --stderr, -l OR -s by default (for compatibility) will always add the equivalent of --debug all. Though you can override with --debug option.

Adam

    (1-5/5)