From 34b050ee8f62d60cbc321ae985f7c5f7e2d70e48 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 15 Nov 2016 16:33:14 +0100 Subject: Show the number of threads used in the startup message This can be useful, especially when using the default hardware concurrency, to see how many threads does the server actually use in the logs. --- include/crow/http_server.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/crow/http_server.h b/include/crow/http_server.h index d5abb11..e1a9306 100644 --- a/include/crow/http_server.h +++ b/include/crow/http_server.h @@ -141,7 +141,8 @@ namespace crow }); } - CROW_LOG_INFO << server_name_ << " server is running, local port " << port_; + CROW_LOG_INFO << server_name_ << " server is running on port " << port_ + << " using " << concurrency_ << " threads"; signals_.async_wait( [&](const boost::system::error_code& /*error*/, int /*signal_number*/){ -- cgit v1.2.3-54-g00ecf