fix tcp 502 error for parse tcp backend data
This commit is contained in:
parent
0853562bc9
commit
a8749d4fec
1 changed files with 3 additions and 3 deletions
|
@ -38,10 +38,10 @@ function _M.call()
|
|||
return
|
||||
end
|
||||
|
||||
local _, err = cjson.decode(backends)
|
||||
local _, backends_err = cjson.decode(backends)
|
||||
|
||||
if err then
|
||||
ngx.log(ngx.ERR, "could not parse backends data: ", err)
|
||||
if backends_err then
|
||||
ngx.log(ngx.ERR, "could not parse backends data: ", backends_err)
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue