Change log level of XmlSec1 to Error 91/177691/1 accepted/tizen/5.0/unified/20181102.021429 accepted/tizen/unified/20180508.071553 submit/tizen/20180507.082227 submit/tizen_5.0/20181101.000004
authorDongsun Lee <ds73.lee@samsung.com>
Thu, 3 May 2018 03:50:54 +0000 (12:50 +0900)
committerDongsun Lee <ds73.lee@samsung.com>
Thu, 3 May 2018 03:50:54 +0000 (12:50 +0900)
Change-Id: I66cf2604d44eae4482269de2244915484831a02b
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
src/vcore/XmlsecAdapter.cpp

index 7075afa..0f6c72f 100644 (file)
@@ -127,7 +127,7 @@ void XmlSec::fileExtractPrefix(XmlSecContext &context)
                s_prefixPath.erase(pos + 1, std::string::npos);
 }
 
-void LogDebugPrint(const char *file,
+void LogErrorPrint(const char *file,
                                   int line,
                                   const char *func,
                                   const char *errorObject,
@@ -159,10 +159,7 @@ void LogDebugPrint(const char *file,
                        (errorMsg != NULL) ? errorMsg : "",
                        (msg != NULL) ? msg : "");
 
-       if (reason == XMLSEC_ERRORS_MAX_NUMBER)
-               LogError(buff);
-       else
-               LogDebug(buff);
+       LogError(buff);
 }
 
 XmlSec::XmlSec() :
@@ -394,7 +391,7 @@ void XmlSec::validateInternal(XmlSecContext &context)
        LogDebug("Start to validate.");
        Assert(!context.signatureFile.empty());
        Assert(!!context.certificatePtr || !context.certificatePath.empty());
-       xmlSecErrorsSetCallback(LogDebugPrint);
+       xmlSecErrorsSetCallback(LogErrorPrint);
 
        std::unique_ptr<xmlSecKeysMngr, std::function<void(xmlSecKeysMngrPtr)>>
                mngrPtr(xmlSecKeysMngrCreate(), xmlSecKeysMngrDestroy);