From 01e6aeb2eda5ae8c68b0938fd3f714c29376fa45 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Wed, 1 Jul 2020 23:31:07 +0200 Subject: [PATCH] show in log where epg events come from --- src/eitd/xmlutil.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/eitd/xmlutil.cpp b/src/eitd/xmlutil.cpp index 596219770..7f7fd2460 100644 --- a/src/eitd/xmlutil.cpp +++ b/src/eitd/xmlutil.cpp @@ -615,8 +615,8 @@ void *insertEventsfromFile(void * data) if (index_parser == NULL) { readEventsFromDir(epg_dir, ev_count); - debug(DEBUG_NORMAL, "Reading Information finished after %" PRId64 " milliseconds (%d events)", - time_monotonic_ms()-now, ev_count); + debug(DEBUG_NORMAL, "Reading Information finished after %" PRId64 " milliseconds (%d events) from %s", + time_monotonic_ms()-now, ev_count, epg_dir.c_str()); reader_ready = true; pthread_exit(NULL); } @@ -633,12 +633,13 @@ void *insertEventsfromFile(void * data) epgname = epg_dir + filename; readEventsFromFile(epgname, ev_count); + debug(DEBUG_NORMAL, "Reading Information finished after %" PRId64 " milliseconds (%d events) from %s", + time_monotonic_ms()-now, ev_count, epgname.c_str()); + eventfile = xmlNextNode(eventfile); } xmlFreeDoc(index_parser); - debug(DEBUG_NORMAL, "Reading Information finished after %" PRId64 " milliseconds (%d events)", - time_monotonic_ms()-now, ev_count); reader_ready = true; @@ -676,8 +677,8 @@ void *insertEventsfromXMLTV(void * data) pthread_exit(NULL); } - debug(DEBUG_NORMAL, "Reading Information finished after %" PRId64 " milliseconds (%d events)", - time_monotonic_ms()-now, ev_count); + debug(DEBUG_NORMAL, "Reading Information finished after %" PRId64 " milliseconds (%d events) from %s", + time_monotonic_ms()-now, ev_count, url.c_str()); reader_ready = true;