]> git.kaiwu.me - nginx.git/commitdiff
Stream ssl_preread: removed internal macro.
authorVladimir Homutov <vl@nginx.com>
Thu, 15 Sep 2016 12:36:02 +0000 (15:36 +0300)
committerVladimir Homutov <vl@nginx.com>
Thu, 15 Sep 2016 12:36:02 +0000 (15:36 +0300)
The ngx_log_debug() macro is internal and should not be used.

src/stream/ngx_stream_ssl_preread_module.c

index f8662dd53488bc5d3046a81da5c53a0c29ca16cf..166c09395d30f4e2880f5a1a0f06b309b3cfc3d8 100644 (file)
@@ -137,14 +137,14 @@ ngx_stream_ssl_preread_handler(ngx_stream_session_t *s)
     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_stream_ssl_preread_ctx_t *ctx,
 
         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;
             }