Bug #2108
syslog logging can't be disabled after activating
0%
Description
Hello,
I have enable the syslog logging via the webinterface and can't disable it any more.
Furthermore it seems there is a bug in the interface the checkbox isn't selected regardless if you enabled it or not.
Removing (purging) the apt and reinstall doesn't change anything.
Where is the value saved?
History
Updated by Adam Sutton over 10 years ago
- Status changed from New to Rejected
Changes to debug config in the webUI are not persisted to disk, specifically to stop people enabling verbose debug and then forgetting its enabled and flooding there disks. The only way you can make those changes permanent is to use the command line flags which can be set in /etc/default/tvheadend.
No idea whether the original report is true, but rejecting because the remainder suggests misconfiguration.
Adam
Updated by C. Schulz over 10 years ago
What do you think about the second part of the issue?
Furthermore it seems there is a bug in the interface the checkbox isn't selected regardless if you enabled it or not.
In my case, you can help me and tell me why my tvheadend acts totally different?
ps -ef | grep tvh hts 2122 1 0 16:34 ? 00:00:00 /usr/bin/tvheadend -f -u hts -g video root 2566 2519 0 16:40 pts/0 00:00:00 grep tvh
# Default configuration for tvheadend # # TVH_ENABLED # set to 0 to disable upstart job TVH_ENABLED=1 # TVH_USER # if set to "" will run as root TVH_USER="hts" # TVH_GROUP # if set to "" will run as root TVH_GROUP="video" # TVH_CONF_DIR # if set to "" will use ~TVH_USER/.hts/tvheadend TVH_CONF_DIR="" # TVH_ADAPTERS # if set to "" will use all available adapters # for select adapters use comma seperated list of adapter # numbers, i.e. to use /dev/dvb/adapter0 and /dev/dvb/adapter1 only # set as "0,1" TVH_ADAPTERS="" # TVH_IPV6 # if set to 1 will enable IPv6 support TVH_IPV6=0 # TVH_HTTP_PORT # if set to "" will use binary default TVH_HTTP_PORT="" # TVH_HTTP_ROOT # if set to "" will use binary default # else will change the webui root context, useful for proxied # servers TVH_HTTP_ROOT="" # TVH_HTSP_PORT # if set to "" will use binary default TVH_HTSP_PORT="" # TVH_DEBUG # if set to 1 will output debug to syslog TVH_DEBUG=0 # TVH_ARGS # add any other arguments TVH_ARGS=""
Updated by C. Schulz over 10 years ago
Perhaps I should mention that I am using the sources and build on my own.
Updated by Stefan Flipsa almost 10 years ago
I'm seeing the same behaviour as described: debug is not enabled (neither in /etc/default/tvheadend NOR in the web interface), yet my syslog is full of tvheadend debug info. I compiled tvheadend from the git sources on a ARM device.
I DON'T see the other problem OP describes (disfunctional checkboxes in the web interface).
Can you please re-open this issue as it's pretty definitely not a user mis-configuration (since more people are affected). If not, please advise on what the mis-configuration would be and how to fix it.
Thanks!
tvheadend version:
$ tvheadend --version tvheadend: version 3.9.946~g7cb8fc2
/etc/default/tvheadend:
# # Default configuration for tvheadend # # TVH_ENABLED # set to 0 to disable upstart job TVH_ENABLED=1 # TVH_USER # if set to "" will run as root TVH_USER="hts" # TVH_GROUP # if set to "" will run as root TVH_GROUP="video" # TVH_CONF_DIR # if set to "" will use ~TVH_USER/.hts/tvheadend TVH_CONF_DIR="" # TVH_ADAPTERS # if set to "" will use all available adapters # for select adapters use comma seperated list of adapter # numbers, i.e. to use /dev/dvb/adapter0 and /dev/dvb/adapter1 only # set as "0,1" TVH_ADAPTERS="" # TVH_IPV6 # if set to 1 will enable IPv6 support TVH_IPV6=0 # TVH_HTTP_PORT # if set to "" will use binary default TVH_HTTP_PORT="" # TVH_HTTP_ROOT # if set to "" will use binary default # else will change the webui root context, useful for proxied # servers TVH_HTTP_ROOT="" # TVH_HTSP_PORT # if set to "" will use binary default TVH_HTSP_PORT="" # TVH_DEBUG # if set to 1 will output debug to syslog TVH_DEBUG=0 # TVH_ARGS # add any other arguments TVH_ARGS=""
tvheadend process / parameters:
$ ps aux|grep tvheadend hts 13849 4.2 1.8 291792 16448 ? Ssl 18:05 0:54 /usr/local/bin/tvheadend -f -u hts -g video
syslog excerpt:
Mar 21 18:26:42 udoo tvheadend[13849]: mpegts: 682000 - tuning on Realtek DVB-T RTL2832 : DVB-T #0 Mar 21 18:26:42 udoo kernel: [82429.286657] RTL2832U usb_init_bulk_setting : USB2.0 HIGH SPEED (480Mb/s) Mar 21 18:26:43 udoo tvheadend[13849]: subscription: 'epggrab' subscribing to mux, weight: 3, adapter: 'Realtek DVB-T RTL2832 : DVB-T #0', network: 'DVB-T Berlin', mux: '682000'
There's an un-answered forum thread (https://tvheadend.org/boards/5/topics/14755?r=15700) which suggests patching "src/tvhlog.c" solves that problem, but even though I don't know C, this patch seems like it might just disable debug / logging permanently?!?