Use logging system in more places

This commit is contained in:
DankParrot 2020-07-30 16:42:58 -07:00
parent 09bf4ba110
commit d3d941eb67
2 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,7 @@ int main()
{
ServerProperties properties("server.properties");
properties.Save();
Log_Info("Starting server on port %d", properties.serverPort.GetValue());
auto server = DedicatedServer(&properties);
return 1;

View File

@ -1,3 +1,4 @@
#include "Common.h"
#include "ServerProperties.h"
#include <iostream>
#include <fstream>
@ -16,7 +17,7 @@ namespace Feather
std::ifstream file;
file.open(path);
printf("Reading %s...\n", path);
Log_Info("Reading %s...", path);
if (file.is_open())
{
string line;
@ -49,7 +50,7 @@ namespace Feather
}
else
{
printf("Could not find %s\n", path);
Log_Warn("Could not find %s", path);
}
}