Skip to content

Commit bdaf80a

Browse files
catbro666pintsized
authored andcommitted
add debug log to print poolname
1 parent a939c7e commit bdaf80a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/resty/http_connect.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ local ngx_re_sub = ngx.re.sub
44
local ngx_re_find = ngx.re.find
55
local ngx_log = ngx.log
66
local ngx_WARN = ngx.WARN
7+
local ngx_DEBUG = ngx.DEBUG
78
local to_hex = require("resty.string").to_hex
89
local ffi_gc = ffi.gc
910
local ffi_cast = ffi.cast
@@ -272,6 +273,8 @@ local function connect(self, options)
272273
-- with a plain http request the authorization is part of the actual request.
273274
end
274275

276+
ngx_log(ngx_DEBUG, "poolname: " .. poolname)
277+
275278
-- do TCP level connection
276279
local tcp_opts = { pool = poolname, pool_size = pool_size, backlog = backlog }
277280
if proxy then

0 commit comments

Comments
 (0)