diff --git a/src/main.cpp b/src/main.cpp index fe3cd6d..5601c77 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,7 +6,7 @@ /* By: mmoussou info("Starting server..."); if (access(av[1], F_OK) < 0) { - std::cout << "File : " << av[1] << " could not be opened" << std::endl; + std::stringstream str; + str << "File : " << av[1] << " could not be opened"; + _log->error(str.str()); return EXIT_FAILURE; } + delete _log; config::Config *conf; try { std::string str = av[1];