Revise the bat return

put unnecessary log prints to external files.