From 94172ee9ae55fa4e707bd6e295fe7bc96996f866 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 3 Nov 2021 16:46:01 +0300 Subject: [PATCH] Fix logging on actor creation/destroying. --- tdactor/td/actor/impl/Scheduler.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tdactor/td/actor/impl/Scheduler.h b/tdactor/td/actor/impl/Scheduler.h index 712b77be0..30205a493 100644 --- a/tdactor/td/actor/impl/Scheduler.h +++ b/tdactor/td/actor/impl/Scheduler.h @@ -103,13 +103,12 @@ ActorOwn Scheduler::register_actor_impl(Slice name, ActorT *actor_ptr, A LOG_CHECK(sched_id == sched_id_ || (0 <= sched_id && sched_id < static_cast(outbound_queues_.size()))) << sched_id; auto info = actor_info_pool_->create_empty(); - VLOG(actor) << "Create actor: " << tag("name", name) << tag("ptr", *info) << tag("context", context()) - << tag("this", this) << tag("actor_count", actor_count_); actor_count_++; auto weak_info = info.get_weak(); auto actor_info = info.get(); actor_info->init(sched_id_, name, std::move(info), static_cast(actor_ptr), deleter, ActorTraits::need_context, ActorTraits::need_start_up); + VLOG(actor) << "Create actor " << *actor_info << ": " << tag("actor_count", actor_count_); ActorId actor_id = weak_info->actor_id(actor_ptr); if (sched_id != sched_id_) { @@ -134,8 +133,7 @@ ActorOwn Scheduler::register_existing_actor(unique_ptr actor_ptr } inline void Scheduler::destroy_actor(ActorInfo *actor_info) { - VLOG(actor) << "Destroy actor: " << tag("name", *actor_info) << tag("ptr", actor_info) - << tag("actor_count", actor_count_); + VLOG(actor) << "Destroy actor " << *actor_info << ": " << tag("actor_count", actor_count_); LOG_CHECK(actor_info->migrate_dest() == sched_id_) << actor_info->migrate_dest() << " " << sched_id_; cancel_actor_timeout(actor_info);