Inject logger instead of using a singleton
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@@ -5,16 +5,8 @@
|
||||
|
||||
int main(int argc, char ** argv)
|
||||
{
|
||||
/*
|
||||
ServerConfiguration & serverConfiguration;
|
||||
if (serverConfiguration.LoadFromFile("./server.cfg") && !serverConfiguration.IsValid())
|
||||
{
|
||||
Logger::GetInstance().Error("Error loading configuration file, aborting.");
|
||||
return 1;
|
||||
}
|
||||
*/
|
||||
|
||||
HttpServer httpServer;
|
||||
Logger logger;
|
||||
HttpServer httpServer(logger);
|
||||
httpServer.Execute();
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user