diff --git a/vault/request_handling.go b/vault/request_handling.go index 3459fc27376e..a11306c75120 100644 --- a/vault/request_handling.go +++ b/vault/request_handling.go @@ -440,7 +440,7 @@ func (c *Core) CheckToken(ctx context.Context, req *logical.Request, unauth bool c.activityLogLock.RUnlock() // If it is an authenticated ( i.e. with vault token ) request, increment client count if !unauth && activityLog != nil { - err := c.activityLog.HandleTokenUsage(ctx, te, clientID, isTWE) + err := activityLog.HandleTokenUsage(ctx, te, clientID, isTWE) if err != nil { return auth, te, err }