summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http/logging.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/http/logging.hpp b/http/logging.hpp
index 781bcfb9b2..0ed47771c4 100644
--- a/http/logging.hpp
+++ b/http/logging.hpp
@@ -196,7 +196,8 @@ inline void vlog(const FormatString& format, std::format_args&& args)
filename = filename.substr(filename.rfind('/') + 1);
std::cout << std::format("[{} {}:{}] ", levelString, filename,
format.loc.line())
- << std::vformat(format.str, args) << std::endl;
+ << std::vformat(format.str, args) << '\n'
+ << std::flush;
}
} // namespace crow