From e062485020dd6296021b3cb2f5c95f83b5b62c75 Mon Sep 17 00:00:00 2001 From: Roman Kuznetsov Date: Sun, 11 Mar 2018 18:37:32 +0300 Subject: [PATCH] Removed warnings --- coding/internal/xmlparser.hpp | 8 +++++--- map/api_mark_point.cpp | 3 --- map/bookmark.cpp | 10 ++-------- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/coding/internal/xmlparser.hpp b/coding/internal/xmlparser.hpp index a49cbf4d58..b453e3dbed 100644 --- a/coding/internal/xmlparser.hpp +++ b/coding/internal/xmlparser.hpp @@ -79,9 +79,11 @@ public: void PrintError() { if (BaseT::GetErrorCode() != XML_ERROR_NONE) - LOG(LWARNING, ("XML parse error at line", - BaseT::GetCurrentLineNumber(), - "and byte", BaseT::GetCurrentByteIndex())); + { + LOG(LDEBUG, ("XML parse error at line", + BaseT::GetCurrentLineNumber(), + "and byte", BaseT::GetCurrentByteIndex())); + } } private: diff --git a/map/api_mark_point.cpp b/map/api_mark_point.cpp index 2f9d113f25..35e14995c9 100644 --- a/map/api_mark_point.cpp +++ b/map/api_mark_point.cpp @@ -19,9 +19,6 @@ string GetSupportedStyle(string const & s, string const & context, string const if (s == kSupportedColors[i]) return s; } - - // Not recognized symbols are replaced with default one - LOG(LWARNING, ("Icon", s, "for point", context, "is not supported")); return fallback; } diff --git a/map/bookmark.cpp b/map/bookmark.cpp index 51a8edabf4..279570f562 100644 --- a/map/bookmark.cpp +++ b/map/bookmark.cpp @@ -255,8 +255,6 @@ class KMLParser pt = MercatorBounds::FromLatLon(lat, lon); return true; } - else - LOG(LWARNING, ("Invalid coordinates", s, "while loading", m_name)); } } @@ -499,11 +497,7 @@ public: else if (prevTag == "TimeStamp") { if (currTag == "when") - { m_timeStamp = my::StringToTimestamp(value); - if (m_timeStamp == my::INVALID_TIME_STAMP) - LOG(LWARNING, ("Invalid timestamp in Placemark:", value)); - } } else if (currTag == kStyleUrl) { @@ -556,7 +550,7 @@ std::unique_ptr LoadKMLFile(std::string const & file) } catch (std::exception const & e) { - LOG(LWARNING, ("Error while loading bookmarks from", file, e.what())); + LOG(LDEBUG, ("Error while loading bookmarks from", file, e.what())); } return nullptr; } @@ -568,7 +562,7 @@ std::unique_ptr LoadKMLData(ReaderPtr const & reader) KMLParser parser(*data); if (!ParseXML(src, parser, true)) { - LOG(LWARNING, ("XML read error. Probably, incorrect file encoding.")); + LOG(LDEBUG, ("XML read error. Probably, incorrect file encoding.")); data.reset(); } return data;