Skip to content

Commit 8fec266

Browse files
phymberttybalex
authored andcommitted
server: flush stdout after logging in both text and json layout (ggml-org#6253)
1 parent cf94cc9 commit 8fec266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ static inline void server_log(const char *level, const char *function, int line,
9898

9999
const std::string str = ss.str();
100100
printf("%.*s\n", (int)str.size(), str.data());
101-
fflush(stdout);
102101
}
102+
fflush(stdout);
103103
}
104104

105105
//

0 commit comments

Comments
 (0)