write失败，要把log打印出来