From 2f438e451fb07cf14982dccd74701c64209784de Mon Sep 17 00:00:00 2001 From: Xavier Vello Date: Thu, 19 Oct 2023 17:57:18 +0200 Subject: [PATCH] chore(p-s): add logs around setupPlugins (#18099) --- plugin-server/src/worker/plugins/setup.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin-server/src/worker/plugins/setup.ts b/plugin-server/src/worker/plugins/setup.ts index 4d2d2e33e8807..b54e1e2b355a7 100644 --- a/plugin-server/src/worker/plugins/setup.ts +++ b/plugin-server/src/worker/plugins/setup.ts @@ -1,4 +1,5 @@ import { Hub, StatelessVmMap } from '../../types' +import { status } from '../../utils/status' import { LazyPluginVM } from '../vm/lazy' import { loadPlugin } from './loadPlugin' import { loadPluginsFromDB } from './loadPluginsFromDB' @@ -6,6 +7,7 @@ import { loadSchedule } from './loadSchedule' import { teardownPlugins } from './teardown' export async function setupPlugins(hub: Hub): Promise { + status.info('🔁', `Loading plugin configs...`) const { plugins, pluginConfigs, pluginConfigsPerTeam } = await loadPluginsFromDB(hub) const pluginVMLoadPromises: Array> = [] const statelessVms = {} as StatelessVmMap @@ -56,4 +58,6 @@ export async function setupPlugins(hub: Hub): Promise { if (hub.capabilities.pluginScheduledTasks) { await loadSchedule(hub) } + + status.info('✅', `Loaded ${pluginConfigs.size} configs for ${plugins.size} plugins`) }