Project

General

Profile

How to disable logging to syslog?

Added by timo nein almost 10 years ago

Hello,

I use tvheadend on a Raspberry Pi and use rsyslog.

I have compiled tvheadend from git with:

git clone https://github.com/tvheadend/tvheadend.git --depth 1
./configure --enable-bundle --disable-avahi --disable-dvbscan --disable-iptv

DVB scan files path:
/usr/local/share/tvheadend/data/dvb-scan/

I haven't enable logging via /etc/default/tvheadend and can confirm, that on the WebUI settings debug page no checkboxes are selected and $ARGS are only

-f -u hts -g video -c /home/hts/.hts/tvheadend --http_root /

How to disable logging to syslog? Do I have to dig into tvhlog.c?

Best regards,
Timo

edit:

I have patched src/tvhlog.c in "void _tvhlog" and added after the "{" a new line with "return;".

void _tvhlog ( const char *file, int line,    
               int notify, int severity,    
               const char *subsys, const char *fmt, ...
mt, ... )
{                        
return;
va_list args;


Replies (4)

RE: How to disable logging to syslog? - Added by Stefan Flipsa over 9 years ago

Just adding myself here as I'm seeing the same problem.

Also, as per https://tvheadend.org/issues/2108 it seems more people are affected (think this ticket was closed prematurely by blaming it on a misconfig by the user).

RE: How to disable logging to syslog? - Added by alf alfonsius over 9 years ago

if you are using rsyslogd then you could add:

:syslogtag, startswith, "tvheadend" -/var/log/whatever.log
& ~

RE: How to disable logging to syslog? - Added by Peter W. almost 9 years ago

I have the same question.
I see there is the S switch which disables it completely but it would be nice to have a switch like -l which sends the default log to a file and not the debug log. Or a switch like --debug to globally change the loglevel to normal.

RE: How to disable logging to syslog? - Added by Randy M over 8 years ago

Unlike Peter W i do like to disable ALL logging completely but for some reason it doesn't seem to work.

I'm running my own compiled Synology package with version HTS Tvheadend 4.1.1724
I modified the start command several times but it keeps giving me logging information.

Command used to launch now is ${TVHEADEND} -f -u ${USER} -c ${INSTALL_DIR}/var -p ${PID_FILE} -l ${LOG_FILE} --debug "" -S

When making any combination of -l -S and --debug "" as arguments it still keeps giving me logging information in GUI and file when -l is specified.
How can i completely disable all logging from tvheadend as i don't need it to send every second some info to my discs when i'm not going to read it anyway, if it works it works, no need for logging information.
Also when i'm using the -S argument only i still see log information in TVH but i have no clue were TVH writes it to and therefore i think it's still eating up disc space.

    (1-4/4)