Fixed the Logging system to actually be able to handle errors. Database is also fixed to use directories.

This commit is contained in:
2024-04-23 22:29:49 -07:00
parent 2734cc00fb
commit f030ac62ae
61 changed files with 884 additions and 602 deletions

View File

@@ -87,7 +87,7 @@ namespace ehs
UInt_64 sent = Send((Byte*)&str[offset], size - offset);
if (!sent)
{
EHS_LOG_INT("Error", 0, "Failed to send data.");
EHS_LOG_INT(LogType::ERR, 0, "Failed to send data.");
return;
}
@@ -269,7 +269,7 @@ namespace ehs
UInt_64 received = Receive((Byte*)&buffer[offset], contentLength - offset);
if (!received)
{
EHS_LOG_INT("Error", 0, "Failed to receive data.");
EHS_LOG_INT(LogType::ERR, 0, "Failed to receive data.");
return {};
}
@@ -292,7 +292,7 @@ namespace ehs
UInt_64 received = Receive((Byte*)&hexSize[offset], 1);
if (!received)
{
EHS_LOG_INT("Error", 0, "Failed to receive data.");
EHS_LOG_INT(LogType::ERR, 0, "Failed to receive data.");
return 0;
}
else if (hexSize[offset] == '\r')
@@ -322,7 +322,7 @@ namespace ehs
UInt_64 received = Receive((Byte*)&buffer[offset], chunkSize + 2 - offset);
if (!received)
{
EHS_LOG_INT("Error", 0, "Failed to receive data.");
EHS_LOG_INT(LogType::ERR, 0, "Failed to receive data.");
return {};
}