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,
(errorMsg != NULL) ? errorMsg : "",
(msg != NULL) ? msg : "");
- if (reason == XMLSEC_ERRORS_MAX_NUMBER)
- LogError(buff);
- else
- LogDebug(buff);
+ LogError(buff);
}
XmlSec::XmlSec() :
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);