Skip to content

Commit

Permalink
Add logging in the case that lock not acquired
Browse files Browse the repository at this point in the history
  • Loading branch information
mloughran committed Jan 11, 2012
1 parent 55813d0 commit 9296fed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/em-hiredis/lock.rb
Expand Up @@ -60,10 +60,12 @@ def attempt_to_acquire_existing_lock(df)
df.succeed(expiry)
else
# Another client got there first
EM::Hiredis.logger.debug "Lock: failed to acquire #{@key}"
df.fail(expiry_2)
end
}
else
EM::Hiredis.logger.debug "Lock: failed to acquire #{@key}"
df.fail(expiry_1)
end
}
Expand Down

0 comments on commit 9296fed

Please sign in to comment.