From 72d0f2de848b0c8d49a135b061005e25a2444a2f Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Tue, 24 Sep 2024 04:31:10 +1000 Subject: [PATCH] [8.x] [Dev Server] Remove dead code (#193736) (#193759) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Backport This will backport the following commits from `main` to `8.x`: - [[Dev Server] Remove dead code (#193736)](https://github.com/elastic/kibana/pull/193736) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Alejandro Fernández Haro --- packages/kbn-cli-dev-mode/src/dev_server.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/kbn-cli-dev-mode/src/dev_server.ts b/packages/kbn-cli-dev-mode/src/dev_server.ts index 631eda24ba07f..2a47042959e77 100644 --- a/packages/kbn-cli-dev-mode/src/dev_server.ts +++ b/packages/kbn-cli-dev-mode/src/dev_server.ts @@ -196,16 +196,6 @@ export class DevServer { this.phase$.next('listening'); this.ready$.next(true); } - - // TODO: remove this once Pier is done migrating log rotation to KP - if (msg === 'RELOAD_LOGGING_CONFIG_FROM_SERVER_WORKER') { - // When receive that event from server worker - // forward a reloadLoggingConfig message to parent - // and child proc. This is only used by LogRotator service - // when the cluster mode is enabled - process.emit('message' as any, { reloadLoggingConfig: true } as any); - proc.send({ reloadLoggingConfig: true }); - } }), takeUntil(exit$) );