Skip to content

Commit

Permalink
chore(scalprum-backend): Frontend plugins log line (#894)
Browse files Browse the repository at this point in the history
This commit adds a log statement to the scalprum-backend plugin to log each
successfully loaded frontend dynamic plugin, using a similar format to what's
current used to log backend dynamic plugins.

Signed-off-by: Stan Lewis <[email protected]>
  • Loading branch information
gashcrumb authored Jan 22, 2024
1 parent 54171ca commit 204fe7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-avocados-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@internal/plugin-scalprum-backend': patch
---

Add logging statements when loading frontend dynamic plugins similar to the logging statements when loading backend dynamic plugins
3 changes: 3 additions & 0 deletions plugins/scalprum-backend/src/service/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export async function createRouter(options: RouterOptions): Promise<Router> {
name: pkgManifest.name,
manifestLocation: `${externalBaseUrl}/${pkgManifest.name}/plugin-manifest.json`,
};
logger.info(
`Loaded dynamic frontend plugin '${plugin.name}' from '${pkg.location}' `,
);
});

router.get('/plugins', (_, response) => {
Expand Down

0 comments on commit 204fe7e

Please sign in to comment.