Log tls error login time

This commit is contained in:
Andrey 2020-02-08 23:43:03 +05:00 committed by kirill reshke
parent dd21f6fb66
commit 8421873a79
1 changed files with 2 additions and 2 deletions

View File

@ -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");