diff --git a/lib/resty/logger/socket.lua b/lib/resty/logger/socket.lua index ccd58d3..e672dbb 100644 --- a/lib/resty/logger/socket.lua +++ b/lib/resty/logger/socket.lua @@ -121,7 +121,7 @@ local function _connect() if debug then ngx_log(DEBUG, "previous connect not finished") end - return true + return nil, "previous connect not finished" end connected = false