Skip to content

Commit

Permalink
Merge pull request HIT-SCIR#123 from memeda/master
Browse files Browse the repository at this point in the history
add fflush for logging module
  • Loading branch information
Oneplus committed Aug 6, 2015
2 parents efe4994 + cb93e3d commit 7f1bc98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/logging.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ class Logger {

vfprintf(log_fpo, fmt, lst);
fprintf(log_fpo, "\n");
fflush(log_fpo) ; // clear output buffer

spthread_mutex_unlock(&mutex);

Expand Down

0 comments on commit 7f1bc98

Please sign in to comment.