From: Pierrick Hymbert Date: Sat, 23 Mar 2024 12:18:45 +0000 (+0100) Subject: server: flush stdout after logging in both text and json layout (#6253) X-Git-Tag: upstream/0.0.4488~1977 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=1b26aebe4de4f048ac99996efd8a2c9af150904d;p=pkg%2Fggml%2Fsources%2Fllama.cpp server: flush stdout after logging in both text and json layout (#6253) --- diff --git a/examples/server/utils.hpp b/examples/server/utils.hpp index d7eef556..8f20ff61 100644 --- a/examples/server/utils.hpp +++ b/examples/server/utils.hpp @@ -95,8 +95,8 @@ static inline void server_log(const char *level, const char *function, int line, const std::string str = ss.str(); printf("%.*s\n", (int)str.size(), str.data()); - fflush(stdout); } + fflush(stdout); } //