aboutsummaryrefslogtreecommitdiffstats
path: root/include/crow/http_server.h
diff options
context:
space:
mode:
authorVadim Zeitlin <vadim@zeitlins.org>2016-11-15 16:33:14 +0100
committerVadim Zeitlin <vadim@zeitlins.org>2016-11-15 16:33:14 +0100
commit34b050ee8f62d60cbc321ae985f7c5f7e2d70e48 (patch)
tree24ee5fce1cad649a640bea452b901bf094e1795a /include/crow/http_server.h
parent4e39b23e455e455f1878b3e68d729a1737f3e431 (diff)
downloadcrow-34b050ee8f62d60cbc321ae985f7c5f7e2d70e48.tar.gz
crow-34b050ee8f62d60cbc321ae985f7c5f7e2d70e48.zip
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.
Diffstat (limited to 'include/crow/http_server.h')
-rw-r--r--include/crow/http_server.h3
1 files changed, 2 insertions, 1 deletions
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*/){