mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 06:09:02 +02:00
add metric for unlock errors
sentry does not record them reliably, due to rate limiting
This commit is contained in:
@@ -87,6 +87,7 @@ module.exports = LockManager =
|
||||
else if result? and result isnt 1 # successful unlock should release exactly one key
|
||||
profile.log("unlockScript:expired-lock").end()
|
||||
logger.error {doc_id:doc_id, key:key, lockValue:lockValue, redis_err:err, redis_result:result}, "unlocking error"
|
||||
metrics.inc "unlock-error"
|
||||
return callback(new Error("tried to release timed out lock"))
|
||||
else
|
||||
profile.log("unlockScript:ok").end()
|
||||
|
||||
Reference in New Issue
Block a user