fix issue cause core dump when client cut the line
update trace format