mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
Changes offensive messages.
Changed noisy messages to be logged at LOG_DEBUG level.
This commit is contained in:
@@ -109,7 +109,10 @@ void __attribute__ ((format(printf, 4, 5)))
|
||||
else
|
||||
debug_prio = 1;
|
||||
|
||||
if (priority == LOG_DEBUG && debug_prio < 3)
|
||||
if (priority == LOG_DEBUG && debug_prio < DEBUG_DEBUG)
|
||||
return;
|
||||
|
||||
if (priority == LOG_INFO && debug_prio < DEBUG_INFO)
|
||||
return;
|
||||
|
||||
if (priority == LOG_HTTP_DEBUG) {
|
||||
|
||||
@@ -907,12 +907,12 @@ static void terminate_server(main_server_st * s)
|
||||
{
|
||||
unsigned total = 10;
|
||||
|
||||
mslog(s, NULL, LOG_INFO, "termination request received; waiting for children to die");
|
||||
mslog(s, NULL, LOG_INFO, "termination request received; waiting for sessions to die");
|
||||
kill_children(s);
|
||||
|
||||
while (waitpid(-1, NULL, WNOHANG) >= 0) {
|
||||
if (total == 0) {
|
||||
mslog(s, NULL, LOG_INFO, "not everyone died; forcing kill");
|
||||
mslog(s, NULL, LOG_INFO, "not all sessions died; forcing kill");
|
||||
kill(0, SIGKILL);
|
||||
}
|
||||
ms_sleep(500);
|
||||
|
||||
@@ -2683,7 +2683,7 @@ static void tls_watcher_cb (EV_P_ ev_io * w, int revents)
|
||||
|
||||
ret = tls_mainloop(ws, &tnow);
|
||||
if (ret < 0) {
|
||||
oclog(ws, LOG_ERR, "tls_mainloop failed %d", ret);
|
||||
oclog(ws, LOG_DEBUG, "tls_mainloop failed %d", ret);
|
||||
terminate_reason = REASON_ERROR;
|
||||
cstp_send_terminate(ws);
|
||||
}
|
||||
@@ -2698,7 +2698,7 @@ static void tun_watcher_cb (EV_P_ ev_io * w, int revents)
|
||||
|
||||
ret = tun_mainloop(ws, &tnow);
|
||||
if (ret < 0) {
|
||||
oclog(ws, LOG_ERR, "tun_mainloop failed %d", ret);
|
||||
oclog(ws, LOG_DEBUG, "tun_mainloop failed %d", ret);
|
||||
terminate_reason = REASON_ERROR;
|
||||
cstp_send_terminate(ws);
|
||||
}
|
||||
@@ -2714,7 +2714,7 @@ static void dtls_watcher_cb (EV_P_ ev_io * w, int revents)
|
||||
|
||||
ret = dtls_mainloop(ws, dtls, &tnow);
|
||||
if (ret < 0) {
|
||||
oclog(ws, LOG_ERR, "dtls_mainloop failed %d", ret);
|
||||
oclog(ws, LOG_DEBUG, "dtls_mainloop failed %d", ret);
|
||||
terminate_reason = REASON_ERROR;
|
||||
cstp_send_terminate(ws);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user