Add log for popularity caculation