Add missing log part (#30)

This commit is contained in:
Kunoi Sayami 2020-11-20 23:11:23 +08:00 committed by GitHub
parent 82ffc0b008
commit f419509029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,8 +45,9 @@ class HttpServer : public td::TcpListener::Callback {
return; return;
} }
flood_control_.add_event(static_cast<td::int32>(now)); flood_control_.add_event(static_cast<td::int32>(now));
LOG(INFO) << "Create tcp listener " << td::tag("port", port_); LOG(INFO) << "Create tcp listener " << td::tag("address", ip_address_) << td::tag("port", port_);
listener_ = td::create_actor<td::TcpListener>(PSLICE() << "TcpListener" << td::tag("port", port_), port_, listener_ = td::create_actor<td::TcpListener>(
PSLICE() << "TcpListener" << td::tag("address", ip_address_) << td::tag("port", port_), port_,
actor_shared(this, 1), ip_address_); actor_shared(this, 1), ip_address_);
} }