fix #4400: Insert last log text