Fixed the Logging system to actually be able to handle errors. Database is also fixed to use directories.
This commit is contained in:
@@ -11,7 +11,7 @@ namespace ehs
|
||||
return;
|
||||
|
||||
if (dlclose(hdl))
|
||||
EHS_LOG_INT("Error", 0, "Failed to close.");
|
||||
EHS_LOG_INT(LogType::ERR, 0, "Failed to close.");
|
||||
}
|
||||
|
||||
Open::Open()
|
||||
@@ -77,7 +77,7 @@ namespace ehs
|
||||
hdl = dlopen(filePath, RTLD_LAZY);
|
||||
if (!hdl)
|
||||
{
|
||||
EHS_LOG_INT("Error", 0, dlerror());
|
||||
EHS_LOG_INT(LogType::ERR, 0, dlerror());
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -88,7 +88,7 @@ namespace ehs
|
||||
return;
|
||||
|
||||
if (dlclose(hdl))
|
||||
EHS_LOG_INT("Error", 0, "Failed to close.");
|
||||
EHS_LOG_INT(LogType::ERR, 0, "Failed to close.");
|
||||
|
||||
hdl = nullptr;
|
||||
}
|
||||
@@ -102,7 +102,7 @@ namespace ehs
|
||||
if (!func)
|
||||
{
|
||||
dlerror();
|
||||
EHS_LOG_INT("Error", 0, "Undefined symbol, \"" + symbol + "\".");
|
||||
EHS_LOG_INT(LogType::ERR, 0, "Undefined symbol, \"" + symbol + "\".");
|
||||
Release();
|
||||
return nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user