Skip to content

Commit

Permalink
bugfix: log a warning instead of an error when failed to set keepalive.
Browse files Browse the repository at this point in the history
Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
  • Loading branch information
moonming authored and agentzh committed Oct 17, 2017
1 parent 34e7ec5 commit 3426fff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resty/memcached/shdict.lua
Expand Up @@ -95,8 +95,8 @@ function _M.gen_memc_methods (opts)
local function release_memc(ctx, memc)
local ok, err = memc:set_keepalive(max_idle_time, pool_size)
if not ok then
error_log(ctx, "failed to put connection for ", tag,
" into the pool: ", err)
warn(ctx, "failed to put connection for ", tag,
" into the pool: ", err)
end
end

Expand Down

0 comments on commit 3426fff

Please sign in to comment.