Skip to content

Commit 3c6d6e7

Browse files
committedAug 18, 2024
change log level to prevent too much logging
1 parent 2c1269d commit 3c6d6e7

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed
 

‎device.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,13 @@ cString cIptvDevice::DeviceName() const {
211211
}
212212

213213
int cIptvDevice::SignalStrength() const {
214-
debug1("%s [device %d]", __PRETTY_FUNCTION__, deviceIndexM);
214+
debug9("%s [device %d]", __PRETTY_FUNCTION__, deviceIndexM);
215215

216216
return (100);
217217
}
218218

219219
int cIptvDevice::SignalQuality() const {
220-
debug1("%s [device %d]", __PRETTY_FUNCTION__, deviceIndexM);
220+
debug9("%s [device %d]", __PRETTY_FUNCTION__, deviceIndexM);
221221

222222
return (100);
223223
}

‎sectionfilter.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ cIptvSectionFilterHandler::cIptvSectionFilterHandler(int deviceIndexP, unsigned
234234
*cString::sprintf("IPTV SECTION HANDLER %d", deviceIndexP))),
235235
mutexM(),
236236
deviceIndexM(deviceIndexP) {
237-
debug1("%s (%d, %d) [device %d]", __PRETTY_FUNCTION__, deviceIndexP, bufferLenP, deviceIndexM);
237+
debug9("%s (%d, %d) [device %d]", __PRETTY_FUNCTION__, deviceIndexP, bufferLenP, deviceIndexM);
238238

239239
// Initialize filter pointers
240240
memset(filtersM, 0, sizeof(filtersM));
@@ -250,7 +250,7 @@ cIptvSectionFilterHandler::cIptvSectionFilterHandler(int deviceIndexP, unsigned
250250
}
251251

252252
cIptvSectionFilterHandler::~cIptvSectionFilterHandler() {
253-
debug1("%s [device %d]", __PRETTY_FUNCTION__, deviceIndexM);
253+
debug9("%s [device %d]", __PRETTY_FUNCTION__, deviceIndexM);
254254
// Stop thread
255255
if (Running())
256256
Cancel(3);
@@ -263,7 +263,7 @@ cIptvSectionFilterHandler::~cIptvSectionFilterHandler() {
263263
}
264264

265265
void cIptvSectionFilterHandler::Action() {
266-
debug1("%s Entering [device %d]", __PRETTY_FUNCTION__, deviceIndexM);
266+
debug9("%s Entering [device %d]", __PRETTY_FUNCTION__, deviceIndexM);
267267
bool processed = false;
268268
// Do the thread loop
269269
while (Running()) {
@@ -294,7 +294,7 @@ void cIptvSectionFilterHandler::Action() {
294294
}
295295
}
296296
ringBufferM->Del(len);
297-
debug1("%s Skipped %d bytes to sync on TS packet [device %d]]",
297+
debug9("%s Skipped %d bytes to sync on TS packet [device %d]]",
298298
__PRETTY_FUNCTION__,
299299
len,
300300
deviceIndexM);
@@ -313,7 +313,7 @@ void cIptvSectionFilterHandler::Action() {
313313
}
314314
cCondWait::SleepMs(10); // to avoid busy loop and reduce cpu load
315315
}
316-
debug1("%s Exiting [device %d]", __PRETTY_FUNCTION__, deviceIndexM);
316+
debug9("%s Exiting [device %d]", __PRETTY_FUNCTION__, deviceIndexM);
317317
}
318318

319319
cString cIptvSectionFilterHandler::GetInformation() {
@@ -399,7 +399,7 @@ void cIptvSectionFilterHandler::Close(int handleP) {
399399
// Search the filter for deletion
400400
for (unsigned int i = 0; i < eMaxSecFilterCount; ++i) {
401401
if (filtersM[i] && (handleP==filtersM[i]->GetFd())) {
402-
debug1("%s (%d) pid=%d handle=%d index=%d [device %d]",
402+
debug9("%s (%d) pid=%d handle=%d index=%d [device %d]",
403403
__PRETTY_FUNCTION__,
404404
handleP,
405405
filtersM[i]->GetPid(),
@@ -418,7 +418,7 @@ int cIptvSectionFilterHandler::GetPid(int handleP) {
418418
// Search the filter for data
419419
for (unsigned int i = 0; i < eMaxSecFilterCount; ++i) {
420420
if (filtersM[i] && (handleP==filtersM[i]->GetFd())) {
421-
debug1("%s (%d) pid=%d handle=%d index=%d [device %d]",
421+
debug9("%s (%d) pid=%d handle=%d index=%d [device %d]",
422422
__PRETTY_FUNCTION__,
423423
handleP,
424424
filtersM[i]->GetPid(),

‎streamer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ bool cIptvStreamer::SetSource(cIptvProtocolIf *protocolP, SourceParameter parame
129129
}
130130

131131
bool cIptvStreamer::SetPid(int pidP, int typeP, bool onP) {
132-
debug1("%s (%d, %d, %d)", __PRETTY_FUNCTION__, pidP, typeP, onP);
132+
debug9("%s (%d, %d, %d)", __PRETTY_FUNCTION__, pidP, typeP, onP);
133133

134134
if (protocolM) {
135135
return protocolM->SetPid(pidP, typeP, onP);

0 commit comments

Comments
 (0)
Please sign in to comment.