diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-03-05 17:32:50 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-03-05 17:32:50 +0300 |
commit | 912a49c6091c1fd9b630d2e0966f0fe1b97a3e42 (patch) | |
tree | 5581735807436384796dfd9deff336865c8372e4 /src/nxt_cyassl.c | |
parent | f2090bce21e4fb47d11f992a76ef5c4da74c3233 (diff) | |
download | unit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.gz unit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.bz2 |
Reduced number of critical log levels.
Diffstat (limited to 'src/nxt_cyassl.c')
-rw-r--r-- | src/nxt_cyassl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nxt_cyassl.c b/src/nxt_cyassl.c index 3d487183..91039e0c 100644 --- a/src/nxt_cyassl.c +++ b/src/nxt_cyassl.c @@ -87,7 +87,7 @@ nxt_cyassl_start(void) err = CyaSSL_Init(); if (err != SSL_SUCCESS) { - nxt_cyassl_log_error(NXT_LOG_CRIT, thr->log, err, + nxt_cyassl_log_error(NXT_LOG_ALERT, thr->log, err, "CyaSSL_Init() failed"); return NXT_ERROR; } @@ -118,7 +118,7 @@ nxt_cyassl_server_init(nxt_ssltls_conf_t *conf) ctx = CyaSSL_CTX_new(CyaSSLv23_server_method()); if (ctx == NULL) { - nxt_cyassl_log_error(NXT_LOG_CRIT, thr->log, 0, + nxt_cyassl_log_error(NXT_LOG_ALERT, thr->log, 0, "CyaSSL_CTX_new() failed"); return NXT_ERROR; } @@ -130,7 +130,7 @@ nxt_cyassl_server_init(nxt_ssltls_conf_t *conf) err = CyaSSL_CTX_use_certificate_file(ctx, certificate, SSL_FILETYPE_PEM); if (err != SSL_SUCCESS) { - nxt_cyassl_log_error(NXT_LOG_CRIT, thr->log, err, + nxt_cyassl_log_error(NXT_LOG_ALERT, thr->log, err, "CyaSSL_CTX_use_certificate_file(\"%s\") failed", certificate); goto fail; @@ -140,7 +140,7 @@ nxt_cyassl_server_init(nxt_ssltls_conf_t *conf) err = CyaSSL_CTX_use_PrivateKey_file(ctx, key, SSL_FILETYPE_PEM); if (err != SSL_SUCCESS) { - nxt_cyassl_log_error(NXT_LOG_CRIT, thr->log, err, + nxt_cyassl_log_error(NXT_LOG_ALERT, thr->log, err, "CyaSSL_CTX_use_PrivateKey_file(\"%s\") failed", key); goto fail; @@ -149,7 +149,7 @@ nxt_cyassl_server_init(nxt_ssltls_conf_t *conf) if (conf->ciphers != NULL) { err = CyaSSL_CTX_set_cipher_list(ctx, conf->ciphers); if (err != SSL_SUCCESS) { - nxt_cyassl_log_error(NXT_LOG_CRIT, thr->log, err, + nxt_cyassl_log_error(NXT_LOG_ALERT, thr->log, err, "CyaSSL_CTX_set_cipher_list(\"%s\") failed", conf->ciphers); goto fail; @@ -199,7 +199,7 @@ nxt_cyassl_conn_init(nxt_thread_t *thr, nxt_ssltls_conf_t *conf, s = CyaSSL_new(ctx); if (s == NULL) { - nxt_cyassl_log_error(NXT_LOG_CRIT, c->socket.log, 0, + nxt_cyassl_log_error(NXT_LOG_ALERT, c->socket.log, 0, "CyaSSL_new() failed"); goto fail; } @@ -574,7 +574,7 @@ nxt_cyassl_log_error_level(nxt_event_conn_t *c, nxt_err_t err, int ssl_error) break; default: - return NXT_LOG_CRIT; + return NXT_LOG_ALERT; } return NXT_LOG_INFO; |