Skip to content

Commit acf675c

Browse files
committed
Add warning if using old connect syntax
1 parent dd9c9a0 commit acf675c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/resty/http.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ do
180180
end
181181

182182
function _M.tcp_only_connect(self, ...)
183+
ngx_log(ngx_WARN, "Use of deprecated `connect` method signature")
184+
183185
local sock = self.sock
184186
if not sock then
185187
return nil, "not initialized"

0 commit comments

Comments
 (0)