Add logging to add_to_stores_hash function