fix the logging bug, and make logging more clear

fix the logging bug, and make logging more clear