warning improved
logger upgraded to version 2 and error logged when there is no content to render