Skip to content

Commit

Permalink
Merge #101981
Browse files Browse the repository at this point in the history
101981: tenantcapabilitiesauthorizer: avoid log spam r=arulajmani a=knz

One of the previous commits was misusing log.Warning where log.VEventf was expected.

Release note: None
Epic: None

Co-authored-by: Raphael 'kena' Poss <[email protected]>
  • Loading branch information
craig[bot] and knz committed Apr 23, 2023
2 parents 23ea65e + 01c779f commit 1f3419e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ func (a *Authorizer) getMode(
if reader == nil {
// The server has started but the reader hasn't started/bound
// yet. Block requests that would need specific capabilities.
log.Warningf(ctx, "capability check for tenant %s before capability reader exists, assuming capability is unavailable", tid)
selectedMode = authorizerModeV222
} else {
// We have a reader. Did we get data from the rangefeed yet?
Expand All @@ -380,7 +381,9 @@ func (a *Authorizer) getMode(
if !found {
// No data from the rangefeed yet. Assume caps are still
// unavailable.
log.Warningf(ctx, "capability check for tenant %s before capability reader exists, assuming capability is unavailable", tid.String())
log.VInfof(ctx, 2,
"no capability information for tenant %s; requests that require capabilities may be denied",
tid)
selectedMode = authorizerModeV222
}
}
Expand Down

0 comments on commit 1f3419e

Please sign in to comment.