Added logging to resource cache