From 8421873a79b2680c7be31150c1efeb3acf731950 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sat, 8 Feb 2020 23:43:03 +0500 Subject: [PATCH] Log tls error login time --- sources/tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/tls.c b/sources/tls.c index 9004df91..fcfe39b9 100644 --- a/sources/tls.c +++ b/sources/tls.c @@ -106,8 +106,8 @@ od_tls_frontend_accept(od_client_t *client, } rc = machine_set_tls(client->io.io, tls, config->client_login_timeout); if (rc == -1) { - od_error(logger, "tls", client, NULL, "error: %s", - od_io_error(&client->io)); + od_error(logger, "tls", client, NULL, "error: %s, login time %d us", + od_io_error(&client->io), machine_time_us() - client->time_accept); return -1; } od_debug(logger, "tls", client, NULL, "ok");