summaryrefslogtreecommitdiff
path: root/examples/server/utils.hpp
diff options
context:
space:
mode:
authorPierrick Hymbert <pierrick.hymbert@gmail.com>2024-03-23 13:18:45 +0100
committerGitHub <noreply@github.com>2024-03-23 13:18:45 +0100
commit1b26aebe4de4f048ac99996efd8a2c9af150904d (patch)
treedb01cbda6890fe92e5de516a81ca7f569c8c2424 /examples/server/utils.hpp
parent50ccaf5eacb50a2ca378a4ef0dc7aeb45fead652 (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.hpp2
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);
}
//