Reduce many syslog messages lost lock
Commit Message
Hi,
i have little request, to reduce syslog messages like "lost lock"
changes inside vdr-1.3.38. i got any message like
... ERROR: frontend 1 lost lock on channel 0, tp 211739
... ERROR: frontend 1 lost lock on channel 0, tp 212129
... ERROR: frontend 1 lost lock on channel 0, tp 212168
... ERROR: frontend 1 lost lock on channel 0, tp 212285
... ERROR: frontend 1 lost lock on channel 0, tp 212363
I run "vdr -l 1", what normally only show error messages on syslog.
I think that is'nt a really important error message, so that i attach a
patch that make from esyslog => dsyslog, but also thinkable is a change
to isyslog.
BTW: what means channel "0" ?
Come that from Transponder/EPG Scan, because here on a disicon-system
not all frequency from ASTRA available...
Cu,
Andreas
Comments
Andreas Brachold wrote:
> Hi,
>
> i have little request, to reduce syslog messages like "lost lock"
> changes inside vdr-1.3.38. i got any message like
>
> ... ERROR: frontend 1 lost lock on channel 0, tp 211739
> ... ERROR: frontend 1 lost lock on channel 0, tp 212129
> ... ERROR: frontend 1 lost lock on channel 0, tp 212168
> ... ERROR: frontend 1 lost lock on channel 0, tp 212285
> ... ERROR: frontend 1 lost lock on channel 0, tp 212363
>
> I run "vdr -l 1", what normally only show error messages on syslog.
>
> I think that is'nt a really important error message, so that i attach a
> patch that make from esyslog => dsyslog, but also thinkable is a change
> to isyslog.
Ok, but I'll make it isyslog - after all, it _can_ be a useful information ;-)
> BTW: what means channel "0" ?
>
> Come that from Transponder/EPG Scan, because here on a disicon-system
> not all frequency from ASTRA available...
Yes, those are not yet in the channels list, so they have no number.
Klaus
@@ -314,7 +314,7 @@
tunerStatus = tsSet;
diseqcCommands = NULL;
if (time(NULL) - lastTimeoutReport > 60) { // let's not get too many of these
- esyslog("ERROR: frontend %d timed out while tuning to channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder());
+ dsyslog("ERROR: frontend %d timed out while tuning to channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder());
lastTimeoutReport = time(NULL);
}
continue;
@@ -323,13 +323,13 @@
if (Status & FE_REINIT) {
tunerStatus = tsSet;
diseqcCommands = NULL;
- esyslog("ERROR: frontend %d was reinitialized", cardIndex);
+ dsyslog("ERROR: frontend %d was reinitialized", cardIndex);
lastTimeoutReport = 0;
continue;
}
else if (Status & FE_HAS_LOCK) {
if (LostLock) {
- esyslog("frontend %d regained lock on channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder());
+ dsyslog("frontend %d regained lock on channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder());
LostLock = false;
}
tunerStatus = tsLocked;
@@ -338,7 +338,7 @@
}
else if (tunerStatus == tsLocked) {
LostLock = true;
- esyslog("ERROR: frontend %d lost lock on channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder());
+ dsyslog("ERROR: frontend %d lost lock on channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder());
tunerStatus = tsTuned;
Timer.Set(lockTimeout);
lastTimeoutReport = 0;