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");
|
ServerProperties properties("server.properties");
|
||||||
properties.Save();
|
properties.Save();
|
||||||
|
Log_Info("Starting server on port %d", properties.serverPort.GetValue());
|
||||||
auto server = DedicatedServer(&properties);
|
auto server = DedicatedServer(&properties);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "Common.h"
|
||||||
#include "ServerProperties.h"
|
#include "ServerProperties.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
@ -16,7 +17,7 @@ namespace Feather
|
||||||
std::ifstream file;
|
std::ifstream file;
|
||||||
file.open(path);
|
file.open(path);
|
||||||
|
|
||||||
printf("Reading %s...\n", path);
|
Log_Info("Reading %s...", path);
|
||||||
if (file.is_open())
|
if (file.is_open())
|
||||||
{
|
{
|
||||||
string line;
|
string line;
|
||||||
|
@ -49,7 +50,7 @@ namespace Feather
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("Could not find %s\n", path);
|
Log_Warn("Could not find %s", path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue