diff options
author | Pierrick Hymbert <pierrick.hymbert@gmail.com> | 2024-03-23 13:18:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-23 13:18:45 +0100 |
commit | 1b26aebe4de4f048ac99996efd8a2c9af150904d (patch) | |
tree | db01cbda6890fe92e5de516a81ca7f569c8c2424 /examples/server/utils.hpp | |
parent | 50ccaf5eacb50a2ca378a4ef0dc7aeb45fead652 (diff) |
server: flush stdout after logging in both text and json layout (#6253)
Diffstat (limited to 'examples/server/utils.hpp')
-rw-r--r-- | examples/server/utils.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } // |