Skip to content

Commit 394ed2e

Browse files
authored
Update yasio.cpp
1 parent f9d67e8 commit 394ed2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yasio/yasio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ void io_service::handle_close(transport_ptr transport)
650650
auto ctx = ptr->ctx_;
651651
auto ec = ptr->error_;
652652
// @Because we can't retrive peer endpoint when connect reset by peer, so use id to trace.
653-
YASIO_LOG("[index: %d] the connection %u is lost, offset:%d, ec:%d, detail:%s", ctx->index_,
653+
YASIO_LOG("[index: %d] the connection #%u is lost, offset:%d, ec:%d, detail:%s", ctx->index_,
654654
ptr->id_, ptr->offset_, ec, io_service::strerror(ec));
655655

656656
do_close(ptr);
@@ -940,7 +940,7 @@ void io_service::handle_connect_succeed(transport_ptr transport)
940940
options_.tcp_keepalive_.probs);
941941
}
942942

943-
YASIO_LOG("[index: %d] the connection %u [%s] --> [%s] is established.", ctx->index_,
943+
YASIO_LOG("[index: %d] the connection #%u [%s] --> [%s] is established.", ctx->index_,
944944
transport->id_, connection->local_endpoint().to_string().c_str(),
945945
connection->peer_endpoint().to_string().c_str());
946946
this->handle_event(event_ptr(new io_event(ctx->index_, YEK_CONNECT_RESPONSE, 0, transport)));

0 commit comments

Comments
 (0)