1
0
Fork 0

changed log level of SSL errors

This commit is contained in:
Jan Steemann 2012-07-24 08:30:29 +02:00
parent 33839809ab
commit 6b9e5dfd54
2 changed files with 11 additions and 11 deletions

View File

@ -125,7 +125,7 @@ namespace triagens {
// is the handshake already done?
if (! accepted) {
if (! trySSLAccept()) {
LOGGER_DEBUG << "failed to established SSL connection";
LOGGER_DEBUG << "failed to establish SSL connection";
return false;
}
@ -147,7 +147,7 @@ namespace triagens {
// is the handshake already done?
if (! accepted) {
if (! trySSLAccept()) {
LOGGER_DEBUG << "failed to established SSL connection";
LOGGER_DEBUG << "failed to establish SSL connection";
return false;
}
@ -195,8 +195,8 @@ namespace triagens {
return true;
}
else {
LOGGER_INFO << "error in SSL handshake";
LOGGER_INFO << lastSSLError();
LOGGER_WARNING << "error in SSL handshake";
LOGGER_WARNING << lastSSLError();
return false;
}
}
@ -216,7 +216,7 @@ namespace triagens {
switch (res) {
case SSL_ERROR_NONE:
LOGGER_INFO << "unknown error in SSL_read";
LOGGER_WARNING << "unknown error in SSL_read";
return false;
case SSL_ERROR_ZERO_RETURN:
@ -233,11 +233,11 @@ namespace triagens {
break;
case SSL_ERROR_WANT_CONNECT:
LOGGER_INFO << "received SSL_ERROR_WANT_CONNECT";
LOGGER_WARNING << "received SSL_ERROR_WANT_CONNECT";
break;
case SSL_ERROR_WANT_ACCEPT:
LOGGER_INFO << "received SSL_ERROR_WANT_ACCEPT";
LOGGER_WARNING << "received SSL_ERROR_WANT_ACCEPT";
break;
case SSL_ERROR_SYSCALL: {
@ -296,7 +296,7 @@ namespace triagens {
switch (res) {
case SSL_ERROR_NONE:
LOGGER_INFO << "unknown error in SSL_write";
LOGGER_WARNING << "unknown error in SSL_write";
break;
case SSL_ERROR_ZERO_RETURN:
@ -306,11 +306,11 @@ namespace triagens {
break;
case SSL_ERROR_WANT_CONNECT:
LOGGER_INFO << "received SSL_ERROR_WANT_CONNECT";
LOGGER_WARNING << "received SSL_ERROR_WANT_CONNECT";
break;
case SSL_ERROR_WANT_ACCEPT:
LOGGER_INFO << "received SSL_ERROR_WANT_ACCEPT";
LOGGER_WARNING << "received SSL_ERROR_WANT_ACCEPT";
break;
case SSL_ERROR_WANT_WRITE:

View File

@ -216,7 +216,7 @@ void HttpsServer::setVerificationCallback (int (*func)(int, X509_STORE_CTX *)) {
////////////////////////////////////////////////////////////////////////////////
void HttpsServer::handleConnected (socket_t socket, ConnectionInfo& info) {
LOGGER_INFO << "trying to establish secure connection";
LOGGER_DEBUG << "trying to establish secure connection";
// convert in a SSL BIO structure
BIO * sbio = BIO_new_socket((int) socket, BIO_NOCLOSE);