From 922269ed50f64d0e0e27388ab5a6abe1b0b7608f Mon Sep 17 00:00:00 2001 From: adjoly Date: Tue, 6 May 2025 11:51:43 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=8F=97=EF=B8=8F=E3=80=8D=20wip:?= =?UTF-8?q?=20added=20pogit=20print=20where=20there=20where=20not?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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];