diff options
| author | Stefan Boberg <[email protected]> | 2022-06-07 18:04:27 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2022-06-07 18:04:27 +0200 |
| commit | 1d16313d40432c96992469a3e82929ff4a54a901 (patch) | |
| tree | 5f992023b6568aea10c079ba36b74f497eab4e33 /zenhttp/httpasio.cpp | |
| parent | Update xmake.lua (diff) | |
| download | zen-1d16313d40432c96992469a3e82929ff4a54a901.tar.xz zen-1d16313d40432c96992469a3e82929ff4a54a901.zip | |
asio: added some logging to indicate concurrency
Diffstat (limited to 'zenhttp/httpasio.cpp')
| -rw-r--r-- | zenhttp/httpasio.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zenhttp/httpasio.cpp b/zenhttp/httpasio.cpp index 45994bb67..81ceef888 100644 --- a/zenhttp/httpasio.cpp +++ b/zenhttp/httpasio.cpp @@ -1155,6 +1155,8 @@ HttpAsioServerImpl::Start(uint16_t Port, int ThreadCount) { ZEN_ASSERT(ThreadCount > 0); + ZEN_INFO("starting asio http with {} service threads", ThreadCount); + m_Acceptor.reset(new asio_http::HttpAcceptor(*this, m_IoService, Port)); m_Acceptor->Start(); @@ -1174,6 +1176,8 @@ HttpAsioServerImpl::Start(uint16_t Port, int ThreadCount) }); } + ZEN_INFO("asio http started (port {})", m_Acceptor->GetAcceptPort()); + return m_Acceptor->GetAcceptPort(); } |