From c56a9a707066cf960c42f521c64e3ff85ea118f7 Mon Sep 17 00:00:00 2001 From: huangxin Date: Mon, 16 Jan 2023 10:48:37 +0800 Subject: [PATCH] =?UTF-8?q?OCT=201.=20=E5=88=A0=E9=99=A4=E9=83=A8=E5=88=86?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- srcs/httpserver/src/haywire/http_server.c | 4 ++-- srcs/open_dhcp/opendhcpd.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/srcs/httpserver/src/haywire/http_server.c b/srcs/httpserver/src/haywire/http_server.c index a577c32..7ae1746 100644 --- a/srcs/httpserver/src/haywire/http_server.c +++ b/srcs/httpserver/src/haywire/http_server.c @@ -134,7 +134,7 @@ void hw_http_add_route(char *route, http_request_callback callback, void *user_d routes = kh_init(string_hashmap); } set_route(routes, route, route_entry); - dzlog_debug("Added route path: [%s]\n", route); // TODO: Replace with logging instead. + // dzlog_debug("Added route path: [%s]\n", route); // TODO: Replace with logging instead. } void free_http_server() { @@ -149,7 +149,7 @@ void free_http_server() { kh_destroy(string_hashmap, routes); uv_close((uv_handle_t *)&server, NULL); uninit_http_request_cache(); - dzlog_debug("HTTP Server Close http://%s:%d\n", config->http_listen_address, config->http_listen_port); + dzlog_info("HTTP Server Close http://%s:%d\n", config->http_listen_address, config->http_listen_port); } int hw_http_open() { diff --git a/srcs/open_dhcp/opendhcpd.cpp b/srcs/open_dhcp/opendhcpd.cpp index fff261f..7cd8f24 100644 --- a/srcs/open_dhcp/opendhcpd.cpp +++ b/srcs/open_dhcp/opendhcpd.cpp @@ -4381,10 +4381,10 @@ void *init(void *lparam) { if ((f = fopen(iniFile, "rt"))) { fclose(f); - } else { + } /* else { sprintf(logBuff, "Warning: file %s not found, defaults will be used", iniFile); logDHCPMess(logBuff, 1); - } + }*/ cfig.lease = opendhcp_set_lease_time(); loadDHCP();