From 17d7e743df8b5212ef495954a586c74df5cbe4e5 Mon Sep 17 00:00:00 2001 From: "Leon Etienne (ubuntu wsl)" Date: Thu, 24 Sep 2020 19:00:01 +0200 Subject: [PATCH] Added a prettier web interface placeholder --- Tubio/HttpServer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tubio/HttpServer.cpp b/Tubio/HttpServer.cpp index bfaf0c6..e63b925 100644 --- a/Tubio/HttpServer.cpp +++ b/Tubio/HttpServer.cpp @@ -8,7 +8,7 @@ HttpServer::HttpServer() { pMgr = new mg_mgr(); pNc = nullptr; - log = new Logger("WebServer"); + log = new Logger("HttpServer"); return; } @@ -35,14 +35,14 @@ bool HttpServer::InitWebServer() { mg_mgr_init(pMgr, NULL); - log->cout << "Starting rest api server on port " << XGConfig::httpServer.port << "..."; + log->cout << "Starting http-server on port " << XGConfig::httpServer.port << "..."; log->Flush(); pNc = mg_bind(pMgr, XGConfig::httpServer.port.c_str(), this->EventHandler); if (pNc == NULL) { - log->cout << log->Err() << "Failed to boot the http server! - Unable to bind listener! (port: " << XGConfig::httpServer.port << ")"; + log->cout << log->Err() << "Failed to boot the http-server! - Unable to bind listener! (port: " << XGConfig::httpServer.port << ")"; log->Flush(); return false; } @@ -51,7 +51,7 @@ bool HttpServer::InitWebServer() frontend_serve_opts.document_root = XGConfig::httpServer.rootdir.c_str(); frontend_serve_opts.enable_directory_listing = "no"; - log->cout << "Started web server successfully!"; + log->cout << "Started http-server successfully!"; log->Flush(); isBootedSuccessfully = true; @@ -133,7 +133,7 @@ void HttpServer::ProcessAPIRequest(mg_connection* pNc, int ev, void* p) void HttpServer::OnExit() { - log->cout << "Shutting down rest api server..."; + log->cout << "Shutting down http-server..."; log->Flush(); mg_mgr_free(pMgr);