Project

General

Profile

Traces » History » Version 11

Jaroslav Kysela, 2019-02-26 15:41

1 1 Jaroslav Kysela
h1. Traces - verbose debugging
2
3 8 Jaroslav Kysela
Please, *read this whole information*. If you *don't see [TRACE] lines in the log file*, you *misconfigured* something and we will ask you for new feedback which slows down the help process.
4
5 5 Jaroslav Kysela
It is quite usual that a developer asks you to provide more verbose logs using the trace (verbose logs for development) which tvheadend includes. If you see --trace <comma_separated_list_of_subsystems> you need to follow this.
6 1 Jaroslav Kysela
7 3 Jaroslav Kysela
Compile tvheadend using --enable-trace option for the configure script see [[Building]] to compile tvheadend directly from sources. The traces are enabled by default, but packages - except debug versions - disable this functionality.
8 1 Jaroslav Kysela
9 7 Jaroslav Kysela
*!!! The [TRACE] lines are written only to the log file. You will not see them on console or syslog output. Please, enter the log file. !!!*
10 6 Jaroslav Kysela
11 10 Jaroslav Kysela
h2. Command-line
12
13 1 Jaroslav Kysela
The first way to enable traces is from the command-line options (to specify the log file and all subsystems to debug), like:
14
15
<pre>
16
./build.linux/tvheadend -l /tmp/tvheadend.log --trace htsp,subscription,pat,pmt,bat
17
</pre>
18 10 Jaroslav Kysela
19
h2. Web UI
20 1 Jaroslav Kysela
21
The second way is to use the debugging tab in the configuration (this settings is not preserved):
22
23
!debugging.png!
24 9 Jaroslav Kysela
25 11 Jaroslav Kysela
h2. Example
26 9 Jaroslav Kysela
27
You should see [  TRACE] lines in your log file (these lines are not in syslog file or journal)!
28
29
<pre>
30
2017-09-14 15:39:07.670 [  TRACE]:httpc: 0004: finishing
31
2017-09-14 15:39:07.672 [  TRACE]:mpegts: table: mux 0x283ea64430 destroy pmt 02/FF (2) pid 044C (1100)
32
2017-09-14 15:39:07.673 [  TRACE]:pcr: S23.5E/12343.5H/CT 1 HD: change   : 1532541106
33
2017-09-14 15:39:07.673 [  TRACE]:mpegts: input SAT>IP DVB-S Tuner #4 (192.168.100.237) got 68432 bytes
34
2017-09-14 15:39:07.673 [  DEBUG]:mpegts: 12343.5H in S23.5E - close PID 044C (1100) [16/0x7fc64400a900]
35
2017-09-14 15:39:07.674 [  TRACE]:mpegts: table: mux 0x283ea64430 free pmt 02/FF (2) pid 044C (1100)
36
2017-09-14 15:39:07.674 [  DEBUG]:mpegts: 12343.5H in S23.5E - close PID 044C (1100) [8/0x283ea64d00]
37
2017-09-14 15:39:07.674 [  DEBUG]:mpegts: 12343.5H in S23.5E - close PID 0456 (1110) [8/0x283ea64d00]
38
2017-09-14 15:39:07.674 [  DEBUG]:mpegts: 12343.5H in S23.5E - close PID 0460 (1120) [8/0x283ea64d00]
39
2017-09-14 15:39:07.674 [  DEBUG]:mpegts: 12343.5H in S23.5E - close PID 0461 (1121) [8/0x283ea64d00]
40
2017-09-14 15:39:07.674 [  DEBUG]:mpegts: 12343.5H in S23.5E - close PID 0462 (1122) [8/0x283ea64d00]
41
2017-09-14 15:39:07.674 [  DEBUG]:mpegts: 12343.5H in S23.5E - close PID 0463 (1123) [8/0x283ea64d00]
42
2017-09-14 15:39:07.674 [  DEBUG]:mpegts: 12343.5H in S23.5E - close PID 046A (1130) [8/0x283ea64d00]
43
2017-09-14 15:39:07.674 [  DEBUG]:mpegts: 12343.5H in S23.5E - close PID 047E (1150) [8/0x283ea64d00]
44
2017-09-14 15:39:07.674 [  DEBUG]:mpegts: 12343.5H in S23.5E - close PID 0488 (1160) [8/0x283ea64d00]
45
2017-09-14 15:39:07.674 [  DEBUG]:mpegts: 12343.5H in S23.5E - stopping mux
46
2017-09-14 15:39:07.674 [  DEBUG]:satip: SAT>IP DVB-S Tuner #4 (192.168.100.237) - stopping 12343.5H in S23.5E
47
2017-09-14 15:39:07.674 [  TRACE]:mpegts: SAT>IP DVB-S Tuner #4 (192.168.100.237) - flush subscribers
48
2017-09-14 15:39:07.674 [  TRACE]:mpegts: 12343.5H in S23.5E - flush tables
49
2017-09-14 15:39:07.674 [  TRACE]:descrambler: mux 0x283ea64430 - flush tables
50
</pre>