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

@@ -89,21 +89,21 @@ namespace ehs
{
client.Release();
EHS_LOG_INT("Error", 0, "Could not authorize with Twitch because the client id was invalid.");
EHS_LOG_INT(LogType::ERR, 0, "Could not authorize with Twitch because the client id was invalid.");
return false;
} else if (authRes.GetCode() == 403)
{
client.Release();
EHS_LOG_INT("Error", 1, "Could not authorize with Twitch because the secret was invalid.");
EHS_LOG_INT(LogType::ERR, 1, "Could not authorize with Twitch because the secret was invalid.");
return false;
} else if (authRes.GetCode() != 200)
{
client.Release();
EHS_LOG_INT("Error", 2, "Could not authorize with Twitch.");
EHS_LOG_INT(LogType::ERR, 2, "Could not authorize with Twitch.");
return false;
}