OCT 1. 删除部分调试日志
This commit is contained in:
parent
07313b4577
commit
c56a9a7070
|
@ -134,7 +134,7 @@ void hw_http_add_route(char *route, http_request_callback callback, void *user_d
|
||||||
routes = kh_init(string_hashmap);
|
routes = kh_init(string_hashmap);
|
||||||
}
|
}
|
||||||
set_route(routes, route, route_entry);
|
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() {
|
void free_http_server() {
|
||||||
|
@ -149,7 +149,7 @@ void free_http_server() {
|
||||||
kh_destroy(string_hashmap, routes);
|
kh_destroy(string_hashmap, routes);
|
||||||
uv_close((uv_handle_t *)&server, NULL);
|
uv_close((uv_handle_t *)&server, NULL);
|
||||||
uninit_http_request_cache();
|
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() {
|
int hw_http_open() {
|
||||||
|
|
|
@ -4381,10 +4381,10 @@ void *init(void *lparam) {
|
||||||
|
|
||||||
if ((f = fopen(iniFile, "rt"))) {
|
if ((f = fopen(iniFile, "rt"))) {
|
||||||
fclose(f);
|
fclose(f);
|
||||||
} else {
|
} /* else {
|
||||||
sprintf(logBuff, "Warning: file %s not found, defaults will be used", iniFile);
|
sprintf(logBuff, "Warning: file %s not found, defaults will be used", iniFile);
|
||||||
logDHCPMess(logBuff, 1);
|
logDHCPMess(logBuff, 1);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
cfig.lease = opendhcp_set_lease_time();
|
cfig.lease = opendhcp_set_lease_time();
|
||||||
loadDHCP();
|
loadDHCP();
|
||||||
|
|
Loading…
Reference in New Issue