From 9d31f3e3cdd41ba9777465fa5f0422ab10339e9a Mon Sep 17 00:00:00 2001 From: Istvan Soos Date: Fri, 6 Dec 2024 16:08:12 +0100 Subject: [PATCH] Log isolate renewals. --- app/lib/service/entrypoint/_isolate.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/lib/service/entrypoint/_isolate.dart b/app/lib/service/entrypoint/_isolate.dart index 8a4e33e992..98806cb4df 100644 --- a/app/lib/service/entrypoint/_isolate.dart +++ b/app/lib/service/entrypoint/_isolate.dart @@ -64,6 +64,9 @@ class IsolateRunner { required Duration wait, }) async { final isolatesToClose = [..._isolates]; + final lastId = isolatesToClose.isEmpty ? null : isolatesToClose.last.id; + logger.info('About to renew $count isolate(s) ' + '(closing ${isolatesToClose.length}, last: `$lastId`).'); await start(count); // prevent traffic to hit the old instances @@ -75,6 +78,8 @@ class IsolateRunner { for (final i in isolatesToClose) { await i.close(); } + logger.info('Renewed $count isolate(s) ' + '(closing ${isolatesToClose.length}, last: `$lastId`).'); } /// Send [RequestMessage] and wait for [ReplyMessage] returning