Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jan 3, 2021
1 parent edc1c83 commit bf74eee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/plugin/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ impl FileAppender {
}

impl LogAppender for FileAppender {
fn do_log(&self, record: &FastLogRecord){
self.file.borrow_mut().write(record.formated.as_bytes());
self.file.borrow_mut().flush();
fn do_log(&self, record: &FastLogRecord) {
let mut log_file = self.file.borrow_mut();
log_file.write(record.formated.as_bytes());
log_file.flush();
}
}

0 comments on commit bf74eee

Please sign in to comment.