diff --git a/src/Main.cpp b/src/Main.cpp index b3ff5bd..6fa1b48 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -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; diff --git a/src/config/ServerProperties.cpp b/src/config/ServerProperties.cpp index 8d1d2e5..5f0b222 100644 --- a/src/config/ServerProperties.cpp +++ b/src/config/ServerProperties.cpp @@ -1,3 +1,4 @@ +#include "Common.h" #include "ServerProperties.h" #include #include @@ -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); } }