Add log tag and delete useless ptr define