Skip to content

Commit 14dd94b

Browse files
committed
fix: no need to flush ofstream every time
1 parent 3b4f948 commit 14dd94b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/logger.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ using v8::String;
2525
uv_mutex_lock(&logger_mutex); \
2626
type##_stream.open(filepath, std::ios::app); \
2727
type##_stream << log; \
28-
type##_stream.flush(); \
2928
type##_stream.close(); \
3029
uv_mutex_unlock(&logger_mutex);
3130

0 commit comments

Comments
 (0)