modify log code, help to locate the bug place.