wanghao:optimized code,is printed log for download