changeset 6696:e83540f825cd

Stream ssl_preread: removed internal macro. The ngx_log_debug() macro is internal and should not be used.
author Vladimir Homutov <vl@nginx.com>
date Thu, 15 Sep 2016 15:36:02 +0300
parents 060d71292b69
children 52367732bcbc
files src/stream/ngx_stream_ssl_preread_module.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/stream/ngx_stream_ssl_preread_module.c
+++ b/src/stream/ngx_stream_ssl_preread_module.c
@@ -137,14 +137,14 @@ ngx_stream_ssl_preread_handler(ngx_strea
     while (last - p >= 5) {
 
         if (p[0] != 0x16) {
-            ngx_log_debug(NGX_LOG_DEBUG_STREAM, ctx->log, 0,
-                          "ssl preread: not a handshake");
+            ngx_log_debug0(NGX_LOG_DEBUG_STREAM, ctx->log, 0,
+                           "ssl preread: not a handshake");
             return NGX_DECLINED;
         }
 
         if (p[1] != 3 || p[2] == 0) {
-            ngx_log_debug(NGX_LOG_DEBUG_STREAM, ctx->log, 0,
-                          "ssl preread: unsupported SSL version");
+            ngx_log_debug0(NGX_LOG_DEBUG_STREAM, ctx->log, 0,
+                           "ssl preread: unsupported SSL version");
             return NGX_DECLINED;
         }
 
@@ -230,8 +230,8 @@ ngx_stream_ssl_preread_parse_record(ngx_
 
         case sw_header:
             if (p[0] != 1) {
-                ngx_log_debug(NGX_LOG_DEBUG_STREAM, ctx->log, 0,
-                              "ssl preread: not a client hello");
+                ngx_log_debug0(NGX_LOG_DEBUG_STREAM, ctx->log, 0,
+                               "ssl preread: not a client hello");
                 return NGX_DECLINED;
             }