Merge pull request #695 from GLYASAI/ngxlog

change nginx log level
This commit is contained in:
barnettZQG 2020-03-05 13:35:50 +08:00 committed by GitHub
commit 8b983ee1b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ function _M.balance()
end
ngx_balancer.set_more_tries(1)
ngx.log(ngx.ERR, string.format("select peer %s", peer))
ngx.log(ngx.DEBUG, string.format("select peer %s", peer))
local ok, err = ngx_balancer.set_current_peer(peer)
if not ok then
ngx.log(ngx.ERR, string.format("error while setting current upstream peer %s: %s", peer, err))