From 7d546d93c000cbc2f3db41c5bb79c8123934dfce Mon Sep 17 00:00:00 2001 From: Johan Nyman Date: Thu, 12 Oct 2023 08:42:05 +0200 Subject: [PATCH] chore: logging --- apps/package-manager/packages/generic/src/packageManager.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/package-manager/packages/generic/src/packageManager.ts b/apps/package-manager/packages/generic/src/packageManager.ts index c49fd11b..247b631c 100644 --- a/apps/package-manager/packages/generic/src/packageManager.ts +++ b/apps/package-manager/packages/generic/src/packageManager.ts @@ -189,6 +189,8 @@ export class PackageManagerHandler { this._triggerUpdatedExpectedPackagesTimeout = setTimeout(() => { this._triggerUpdatedExpectedPackagesTimeout = null + const startTime = Date.now() + const packageContainers: PackageContainers = {} const expectedPackageSources: { sourceName: string @@ -273,6 +275,8 @@ export class PackageManagerHandler { } this.handleExpectedPackages(packageContainers, activePlaylist, activeRundowns, expectedPackageSources) + + this.logger.debug(`Took ${Date.now() - startTime}ms to handle updated expectedPackages`) }, 300) }