delete useless log code