Skip to content

Commit

Permalink
Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pintsized committed Jul 16, 2015
1 parent a4d1b32 commit ccab2b2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/ledge/ledge.lua
Expand Up @@ -2286,10 +2286,8 @@ function _M.delete_from_cache(self)
-- Set a gc job for the current entity, delayed for current reads
local size, err = redis:zscore(key_chain.entities, entity_keys.main)
if not size or size == ngx_null then
ngx_log(ngx_ERR, err)
-- Something weird has happened with the data structure. Try to clean
-- up in 1 minute.
size = 60
ngx_log(ngx_ERR, "could not determine entity size for scheduling GC, will collect in 60 seconds")
end

self:put_background_job("ledge", "ledge.jobs.collect_entity", {
Expand Down

0 comments on commit ccab2b2

Please sign in to comment.