Traces » History » Version 13
Jaroslav Kysela, 2019-02-26 15:45
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 | 13 | Jaroslav Kysela | This is the only way to get the traces for all tvheadend subsystems during the start. |
20 | |||
21 | |||
22 | 10 | Jaroslav Kysela | h2. Web UI |
23 | 1 | Jaroslav Kysela | |
24 | 12 | Jaroslav Kysela | The second way is to use the debugging tab in the configuration (this settings is not preserved thus tvheadend will reset it upon the new start): |
25 | 1 | Jaroslav Kysela | |
26 | !debugging.png! |
||
27 | 9 | Jaroslav Kysela | |
28 | 11 | Jaroslav Kysela | h2. Example |
29 | 9 | Jaroslav Kysela | |
30 | You should see [ TRACE] lines in your log file (these lines are not in syslog file or journal)! |
||
31 | |||
32 | <pre> |
||
33 | 2017-09-14 15:39:07.670 [ TRACE]:httpc: 0004: finishing |
||
34 | 2017-09-14 15:39:07.672 [ TRACE]:mpegts: table: mux 0x283ea64430 destroy pmt 02/FF (2) pid 044C (1100) |
||
35 | 2017-09-14 15:39:07.673 [ TRACE]:pcr: S23.5E/12343.5H/CT 1 HD: change : 1532541106 |
||
36 | 2017-09-14 15:39:07.673 [ TRACE]:mpegts: input SAT>IP DVB-S Tuner #4 (192.168.100.237) got 68432 bytes |
||
37 | 2017-09-14 15:39:07.673 [ DEBUG]:mpegts: 12343.5H in S23.5E - close PID 044C (1100) [16/0x7fc64400a900] |
||
38 | 2017-09-14 15:39:07.674 [ TRACE]:mpegts: table: mux 0x283ea64430 free pmt 02/FF (2) pid 044C (1100) |
||
39 | 2017-09-14 15:39:07.674 [ DEBUG]:mpegts: 12343.5H in S23.5E - close PID 044C (1100) [8/0x283ea64d00] |
||
40 | 2017-09-14 15:39:07.674 [ DEBUG]:mpegts: 12343.5H in S23.5E - close PID 0456 (1110) [8/0x283ea64d00] |
||
41 | 2017-09-14 15:39:07.674 [ DEBUG]:mpegts: 12343.5H in S23.5E - close PID 0460 (1120) [8/0x283ea64d00] |
||
42 | 2017-09-14 15:39:07.674 [ DEBUG]:mpegts: 12343.5H in S23.5E - close PID 0461 (1121) [8/0x283ea64d00] |
||
43 | 2017-09-14 15:39:07.674 [ DEBUG]:mpegts: 12343.5H in S23.5E - close PID 0462 (1122) [8/0x283ea64d00] |
||
44 | 2017-09-14 15:39:07.674 [ DEBUG]:mpegts: 12343.5H in S23.5E - close PID 0463 (1123) [8/0x283ea64d00] |
||
45 | 2017-09-14 15:39:07.674 [ DEBUG]:mpegts: 12343.5H in S23.5E - close PID 046A (1130) [8/0x283ea64d00] |
||
46 | 2017-09-14 15:39:07.674 [ DEBUG]:mpegts: 12343.5H in S23.5E - close PID 047E (1150) [8/0x283ea64d00] |
||
47 | 2017-09-14 15:39:07.674 [ DEBUG]:mpegts: 12343.5H in S23.5E - close PID 0488 (1160) [8/0x283ea64d00] |
||
48 | 2017-09-14 15:39:07.674 [ DEBUG]:mpegts: 12343.5H in S23.5E - stopping mux |
||
49 | 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 |
||
50 | 2017-09-14 15:39:07.674 [ TRACE]:mpegts: SAT>IP DVB-S Tuner #4 (192.168.100.237) - flush subscribers |
||
51 | 2017-09-14 15:39:07.674 [ TRACE]:mpegts: 12343.5H in S23.5E - flush tables |
||
52 | 2017-09-14 15:39:07.674 [ TRACE]:descrambler: mux 0x283ea64430 - flush tables |
||
53 | </pre> |