From 9da5955c988f55b519addbbbefc7701efc3fab5b Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Mon, 28 May 2018 19:33:33 +0100 Subject: [PATCH] kodi: remove annoying, excessively repetitive addon logging --- .../patches/kodi-999.99-remove-addon-spam.patch | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 packages/mediacenter/kodi/patches/kodi-999.99-remove-addon-spam.patch diff --git a/packages/mediacenter/kodi/patches/kodi-999.99-remove-addon-spam.patch b/packages/mediacenter/kodi/patches/kodi-999.99-remove-addon-spam.patch new file mode 100644 index 0000000..57ea98d --- /dev/null +++ b/packages/mediacenter/kodi/patches/kodi-999.99-remove-addon-spam.patch @@ -0,0 +1,40 @@ +diff --git a/xbmc/addons/AddonVersion.cpp b/xbmc/addons/AddonVersion.cpp +index 38408f6..36950a3 100644 +--- a/xbmc/addons/AddonVersion.cpp ++++ b/xbmc/addons/AddonVersion.cpp +@@ -53,7 +53,7 @@ namespace ADDON + mRevision = mUpstream.substr(pos+1); + if (mRevision.find_first_not_of(VALID_ADDON_VERSION_CHARACTERS) != std::string::npos) + { +- CLog::Log(LOGERROR, "AddonVersion: {} is not a valid revision number", mRevision); ++ CLog::Log(LOGDEBUG, "AddonVersion: {} is not a valid revision number", mRevision); + mRevision = ""; + } + mUpstream.erase(pos); +@@ -61,7 +61,7 @@ namespace ADDON + + if (mUpstream.find_first_not_of(VALID_ADDON_VERSION_CHARACTERS) != std::string::npos) + { +- CLog::Log(LOGERROR, "AddonVersion: {} is not a valid version", mUpstream); ++ CLog::Log(LOGDEBUG, "AddonVersion: {} is not a valid version", mUpstream); + mUpstream = "0.0.0"; + } + } +diff --git a/xbmc/addons/Repository.cpp b/xbmc/addons/Repository.cpp +index ff3ea3d..fe6c8df 100644 +--- a/xbmc/addons/Repository.cpp ++++ b/xbmc/addons/Repository.cpp +@@ -190,11 +190,11 @@ CRepository::CRepository(CAddonInfo addonInfo, DirList dirs) + CURL datadir(dir.datadir); + if (datadir.IsProtocol("http")) + { +- CLog::Log(LOGWARNING, "Repository {} uses plain HTTP for add-on downloads - this is insecure and will make your Kodi installation vulnerable to attacks if enabled!", Name()); ++ CLog::Log(LOGDEBUG, "Repository {} uses plain HTTP for add-on downloads - this is insecure and will make your Kodi installation vulnerable to attacks if enabled!", Name()); + } + else if (datadir.IsProtocol("https") && datadir.HasProtocolOption("verifypeer") && datadir.GetProtocolOption("verifypeer") == "false") + { +- CLog::Log(LOGWARNING, "Repository {} disabled peer verification for add-on downloads - this is insecure and will make your Kodi installation vulnerable to attacks if enabled!", Name()); ++ CLog::Log(LOGDEBUG, "Repository {} disabled peer verification for add-on downloads - this is insecure and will make your Kodi installation vulnerable to attacks if enabled!", Name()); + } + } + } -- 2.14.1