You can use the nicer form:

logger.error("Failed to check if user [{}] can create a workspace. Assuming false.", userName, e);