Fix substring length on obfuscated token

This commit is contained in:
Calvin Leung Huang 2016-07-05 15:53:30 -04:00
parent 4bd5523276
commit 912887a4db
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ func (c *aclCache) lookupACL(id, authDC string) (acl.ACL, error) {
s := id
// Print last 3 chars of the token if long enough, otherwise completly hide it
if len(s) > 3 {
s = fmt.Sprintf("token ending in '%s'", s[len(s)-1:])
s = fmt.Sprintf("token ending in '%s'", s[len(s)-3:])
} else {
s = redactedToken
}