Use logging system in more places
This commit is contained in:
parent
09bf4ba110
commit
d3d941eb67
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue