// If anonymous access is being attempted, then a tenant ID needs to be set as a query param
//
if (uriInfo == null) {
- String errMsg = "Anonymous access attempted without a valid tenant ID query or path paramter. Error: A null 'UriInfo' instance was passed into the service context constructor.";
- logger.error(errMsg);
+ String errMsg = "Anonymous access attempted with missing or invalid tenant ID query or path paramter. A null 'UriInfo' instance was passed into the service context constructor.";
+ logger.warn(errMsg);
throw new UnauthorizedException(errMsg);
}