d8tltanc commented on a change in pull request #9485: URL: https://github.com/apache/kafka/pull/9485#discussion_r534447894
########## File path: core/src/main/scala/kafka/security/authorizer/AclAuthorizer.scala ########## @@ -456,8 +576,12 @@ class AclAuthorizer extends Authorizer with Logging { val apiKey = if (ApiKeys.hasId(requestContext.requestType)) ApiKeys.forId(requestContext.requestType).name else requestContext.requestType val refCount = action.resourceReferenceCount - s"Principal = $principal is $authResult Operation = $operation " + - s"from host = $host on resource = $resource for request = $apiKey with resourceRefCount = $refCount" + if (byResourceType) + s"Principal = $principal is $authResult Operation = $operation " + + s"from host = $host on at least one resource of type $resourceType for request = $apiKey" Review comment: leave the message as it is now. commit cebbbd47a8e7d318e327e3a279072c718b535abd ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org