Update LogManagerImpl.cpp
Append path separator if utility function returned us a path without trailing slash
@@ -119,7 +119,11 @@ namespace ARIASDK_NS_BEGIN
{
std::string tenantId = (const char *)m_logConfiguration[CFG_STR_PRIMARY_TOKEN];
tenantId = MAT::tenantTokenToId(tenantId);
-
+ if (cacheFilePath.find(PATH_SEPARATOR_CHAR) == std::string::npos)
+ {
+ // append path separator if required
+ cacheFilePath += PATH_SEPARATOR_CHAR;
+ }
cacheFilePath += tenantId;
cacheFilePath += ".db";
}
