Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] logging change wish
Hello,
In /var/log/messages, vdr logs channel switches and timer start/stops.
Because of I use skripts to parse the /var/log/messages and get data out
of it, I wanted to have the information on WHICH card the channel is
switched, timer started or stopped.
My patch for VDR 1.00-pre3:
- shows on which card the channel was switched
- shows on which card and which channel a timer stopped
If you don't have a reason for not changing this, I'd like to see it in
the next versions of vdr. (So I doesn't need to patch every new
version.)
I didn't find where to change the source for showing on which card a
recording starts. ("timer xx start" message) It sould also be added
then.
I don't know if there are other messages relating to one special card,
they should also changed so that the card number is logged.
-------------patches--------------
--- ../VDR_100pre3/menu.c Sun Mar 3 17:12:29 2002
+++ menu.c Fri Mar 8 12:51:36 2002
@@ -2428,2 +2428,3 @@
timer->SetRecording(false);
+ syslog(LOG_INFO, "timer %d stop on card %d channel %d", (timer->Index() + 1), (dvbApi->CardIndex() + 1), timer->channel); // UWEFREESE
if ((IsInstant() && !KeepInstant) || (timer->IsSingleEvent() && !timer->Matches())) {
--- ../VDR_100pre3/config.c Sun Mar 3 17:04:21 2002
+++ config.c Mon Mar 11 17:31:51 2002
@@ -299,3 +299,3 @@
if (Log)
- isyslog(LOG_INFO, "switching to channel %d", number);
+ isyslog(LOG_INFO, "switching to channel %d on card %d", number, DvbApi->CardIndex() + 1); // UWEFREESE
for (int i = 3; i--;) {
-------------sample logfile output--------------
Mar 12 12:14:22 Ixos vdr[1779]: switching to channel 12 on card 2
Mar 12 12:55:01 Ixos vdr[8226]: timer 39 stop on card 2 channel 14
Bye, Uwe.
Home |
Main Index |
Thread Index