improve log render
fix write log twice when error occured
change version to 0.2.5