added log statements to receipt storage code