From 71afdfd68e9667c9bf6ef3ffde016dbb5e471d67 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 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/6ca1f2d9a01d31a2bab3d2845201670517e3cedb Author: TangoCash Date: 2020-07-01 (Wed, 01 Jul 2020) --- 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 9c5254339..c7c4bf169 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; @@ -675,8 +676,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;