@@ -2254,14 +2254,6 @@ static void log_server_request(const httplib::Request & req, const httplib::Resp
2254
2254
return ;
2255
2255
}
2256
2256
2257
- // LOG_INFO("request", {
2258
- // {"remote_addr", req.remote_addr},
2259
- // {"remote_port", req.remote_port},
2260
- // {"status", res.status},
2261
- // {"method", req.method},
2262
- // {"path", req.path},
2263
- // {"params", req.params},
2264
- // });
2265
2257
LOG_INF (" request: %s %s %s %d\n " , req.method .c_str (), req.path .c_str (), req.remote_addr .c_str (), res.status );
2266
2258
2267
2259
LOG_DBG (" request: %s\n " , req.body .c_str ());
@@ -2318,12 +2310,12 @@ int main(int argc, char ** argv) {
2318
2310
std::unique_ptr<httplib::Server> svr;
2319
2311
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
2320
2312
if (params.ssl_file_key != " " && params.ssl_file_cert != " " ) {
2321
- LOG_INFO (" Running with SSL" , {{ " key " , params.ssl_file_key }, { " cert " , params.ssl_file_cert }} );
2313
+ LOG_INF (" Running with SSL: key = %s, cert = %s \n " , params.ssl_file_key . c_str (), params.ssl_file_cert . c_str () );
2322
2314
svr.reset (
2323
2315
new httplib::SSLServer (params.ssl_file_cert .c_str (), params.ssl_file_key .c_str ())
2324
2316
);
2325
2317
} else {
2326
- LOG_INFO (" Running without SSL" , {} );
2318
+ LOG_INF (" Running without SSL\n " );
2327
2319
svr.reset (new httplib::Server ());
2328
2320
}
2329
2321
#else
@@ -3108,7 +3100,6 @@ int main(int argc, char ** argv) {
3108
3100
std::thread t ([&]() { svr->listen_after_bind (); });
3109
3101
svr->wait_until_ready ();
3110
3102
3111
- // LOG_INFO("HTTP server is listening", log_data);
3112
3103
LOG_INF (" %s: HTTP server is listening, hostname: %s, port: %d, http threads: %d\n " , __func__, params.hostname .c_str (), params.port , params.n_threads_http );
3113
3104
3114
3105
// load the model
0 commit comments