summaryrefslogtreecommitdiff
path: root/src/utils/xml/libxml.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-12 15:08:15 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-12 15:08:15 +0300
commit7d762d70604d250cb51282161d390cba1ea664c7 (patch)
treef5341950af8d4649f0d80c3092d5fb9c7c2daa9e /src/utils/xml/libxml.cpp
parent0cda45b8c1775c6a0f1bdf52c8801ccdfd21a8c7 (diff)
downloadplus-7d762d70604d250cb51282161d390cba1ea664c7.tar.gz
plus-7d762d70604d250cb51282161d390cba1ea664c7.tar.bz2
plus-7d762d70604d250cb51282161d390cba1ea664c7.tar.xz
plus-7d762d70604d250cb51282161d390cba1ea664c7.zip
Macro reportAlways also show message in log if asserts disabled in compile time.
Diffstat (limited to 'src/utils/xml/libxml.cpp')
-rw-r--r--src/utils/xml/libxml.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/utils/xml/libxml.cpp b/src/utils/xml/libxml.cpp
index b03a32211..247d5cc9d 100644
--- a/src/utils/xml/libxml.cpp
+++ b/src/utils/xml/libxml.cpp
@@ -112,8 +112,8 @@ namespace XML
size = CAST_S32(file.tellg());
if (size < 0)
{
- logger->log("Error loading XML file %s", filename.c_str());
- reportAlways("Error loading XML file %s", filename.c_str());
+ reportAlways("Error loading XML file %s",
+ filename.c_str());
}
else
{
@@ -125,7 +125,6 @@ namespace XML
}
else
{
- logger->log("Error loading XML file %s", filename.c_str());
reportAlways("Error loading XML file %s", filename.c_str());
}
}
@@ -137,13 +136,11 @@ namespace XML
if (!mDoc)
{
- logger->log("Error parsing XML file %s", filename.c_str());
reportAlways("Error parsing XML file %s", filename.c_str());
}
}
else if (skipError == SkipError_false)
{
- logger->log("Error loading %s", filename.c_str());
reportAlways("Error loading XML file %s", filename.c_str());
}
mIsValid = valid;