Skip to content

Commit 1b26aeb

Browse files
authored
server: flush stdout after logging in both text and json layout (ggml-org#6253)
1 parent 50ccaf5 commit 1b26aeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/utils.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ static inline void server_log(const char *level, const char *function, int line,
9595

9696
const std::string str = ss.str();
9797
printf("%.*s\n", (int)str.size(), str.data());
98-
fflush(stdout);
9998
}
99+
fflush(stdout);
100100
}
101101

102102
//

0 commit comments

Comments
 (0)