Project

General

Profile

Continuous debug log

Added by Gabor Kovacs about 7 years ago

My goal was to remove tvheadend logs from syslog and collect them into a separate file.

I've added this to the /etc/init.d/tvheadend script:

# Log to home folder instead of syslog
ARGS="$ARGS -l /home/hts/tvheadend.log" 

Now logs go to this new location, but somehow its level has been raised to DEBUG and it is flooded with information I do not usually need.
2017-09-24 10:24:33.992 [  DEBUG]:http: 192.168.1.96: HTTP/1.1 POST /t/tvheadend/comet/poll -- 401
2017-09-24 10:25:07.078 [  DEBUG]:http: 192.168.1.96: HTTP/1.1 POST /t/tvheadend/comet/poll -- 401
2017-09-24 10:25:39.854 [  DEBUG]:http: 192.168.1.96: HTTP/1.1 POST /t/tvheadend/comet/poll -- 401
2017-09-24 10:26:12.925 [  DEBUG]:http: 192.168.1.96: HTTP/1.1 POST /t/tvheadend/comet/poll -- 401
2017-09-24 10:26:45.013 [  DEBUG]:http: 192.168.1.96: HTTP/1.1 POST /t/tvheadend/comet/poll -- 401
2017-09-24 10:27:17.547 [  DEBUG]:http: 192.168.1.96: HTTP/1.1 POST /t/tvheadend/comet/poll -- 401
2017-09-24 10:27:48.845 [  DEBUG]:http: 192.168.1.96: HTTP/1.1 POST /t/tvheadend/comet/poll -- 401
2017-09-24 10:28:22.042 [  DEBUG]:http: 192.168.1.96: HTTP/1.1 POST /t/tvheadend/comet/poll -- 401
2017-09-24 10:28:41.676 [  DEBUG]:http: 192.168.1.96: HTTP/1.1 POST /t/tvheadend/comet/poll -- 401
2017-09-24 10:28:43.121 [  DEBUG]:http: 192.168.1.96: HTTP/1.1 POST /t/tvheadend/comet/poll -- 401
2017-09-24 10:44:38.793 [  DEBUG]:http: 192.168.1.96: HTTP/1.1 POST /t/tvheadend/api/epg/events/grid -- 401
2017-09-24 10:44:38.797 [  DEBUG]:http: 192.168.1.96: HTTP/1.1 POST /t/tvheadend/api/epg/events/grid -- 401
2017-09-24 10:44:38.936 [  DEBUG]:http: 192.168.1.96: HTTP/1.1 POST /t/tvheadend/comet/poll -- 401
2017-09-24 10:44:40.864 [  DEBUG]:http: 192.168.1.96: HTTP/1.1 POST /t/tvheadend/api/epg/events/grid -- 401

Also, normal level logs still go to sysleog.
Sep 24 07:34:00 rpi3-server tvheadend[774]: subscription: 0103: "DVR: Baby Daddy" unsubscribing from "Pro7" 
Sep 24 07:34:00 rpi3-server tvheadend[774]: spawn: Executing "/home/pi/tvheadend/post-process-comskip.sh" 
Sep 24 07:34:00 rpi3-server tvheadend[774]: dvr: "Baby Daddy" on "Pro7": End of program: Completed OK
Sep 24 07:34:00 rpi3-server tvheadend[774]: spawn: *** TVHeadend Post Process Script ***
Sep 24 07:34:00 rpi3-server tvheadend[774]: spawn: User           : hts
Sep 24 07:34:00 rpi3-server tvheadend[774]: spawn: Current folder : /
Sep 24 07:34:00 rpi3-server tvheadend[774]: spawn: Parameters     : /mnt/nas-volume-1/Media/TV/Baby Daddy/Baby Daddy_2017-09-24_07-05_In Fall der Falle, Comedy, USA 2015.mkv
Sep 24 07:34:00 rpi3-server tvheadend[774]: spawn: COMSKIP Start          : 2017-09-24_07-34-00
Sep 24 07:42:13 rpi3-server tvheadend[774]: spawn: The commandline used was:
Sep 24 07:42:13 rpi3-server tvheadend[774]: spawn: /usr/local/bin/comskip --threads=2 "/mnt/nas-volume-1/Media/TV/Baby Daddy/Baby Daddy_2017-09-24_07-05_In Fall der Falle, Comedy, USA 2015.mkv" 
Sep 24 07:42:13 rpi3-server tvheadend[774]: spawn: No INI file found in current directory.  Searching PATH...
Sep 24 07:42:13 rpi3-server tvheadend[774]: spawn: INI file found at comskip.ini
Sep 24 07:42:13 rpi3-server tvheadend[774]: spawn: No INI file found anywhere!!!!
Sep 24 07:42:13 rpi3-server tvheadend[774]: spawn: Commercials were found.
Sep 24 07:42:13 rpi3-server tvheadend[774]: spawn: COMSKIP End            : 2017-09-24_07-42-13
Sep 24 07:42:13 rpi3-server tvheadend[774]: spawn: COMSKIP Duration       : 0 seconds
Sep 24 10:17:11 rpi3-server tvheadend[774]: htsp: Got connection from 192.168.1.98
Sep 24 10:17:11 rpi3-server tvheadend[774]: htsp: 192.168.1.98: Welcomed client software: Kodi Media Center (HTSPv25)
Sep 24 10:17:11 rpi3-server tvheadend[774]: htsp: 192.168.1.98 [ Kodi Media Center ]: Identified as user 'kodi'
Sep 24 10:17:11 rpi3-server tvheadend[774]: htsp: 192.168.1.98 [ kodi | Kodi Media Center ]: Privileges updated

What is the correct way of moving the normal level logs from syslog to a separate file?