mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #10193 from overleaf/ii-check-password-for-reuse-remove-samplerate
Remove sampleRate from metrics.inc when checking password GitOrigin-RevId: 830383208039e239bb15a1172fea2ff9fb97373f
This commit is contained in:
parent
c94043e2fe
commit
09c330caff
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ function checkPasswordForReuseInBackground(password) {
|
||||||
|
|
||||||
isPasswordReused(password)
|
isPasswordReused(password)
|
||||||
.then(isReused => {
|
.then(isReused => {
|
||||||
Metrics.inc('password_re_use', 1, {
|
Metrics.inc('password_re_use', {
|
||||||
status: isReused ? 're-used' : 'unique',
|
status: isReused ? 're-used' : 'unique',
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -108,7 +108,7 @@ function checkPasswordForReuseInBackground(password) {
|
||||||
err = new Error(err.message)
|
err = new Error(err.message)
|
||||||
|
|
||||||
logger.err({ err }, 'cannot check password for re-use')
|
logger.err({ err }, 'cannot check password for re-use')
|
||||||
Metrics.inc('password_re_use', 1, { status: 'failure' })
|
Metrics.inc('password_re_use', { status: 'failure' })
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue