fix write log to file missing bug
Merge pull request #1 from codeskyblue/master

fix write log to file missing bug