Skip to content

Commit f99bda6

Browse files
add log message around registering the 'rhdh-rhoai-bridge' location type (#685)
* add log message around registering the 'rhdh-rhoai-bridge' location type * Update workspaces/ai-integrations/plugins/catalog-backend-module-model-catalog/src/module.ts Co-authored-by: Karthik Jeeyar <karthik@redhat.com> --------- Co-authored-by: Karthik Jeeyar <karthik@redhat.com>
1 parent fd078b4 commit f99bda6

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-catalog-backend-module-model-catalog': patch
3+
---
4+
5+
add a log message around registering the 'rhdh-rhoai-bridge' location type

workspaces/ai-integrations/plugins/catalog-backend-module-model-catalog/src/module.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,13 @@ export const catalogModuleRHDHRHOAILocationsExtensionPoint =
103103
env.registerInit({
104104
deps: {
105105
catalog: catalogLocationsExtensionPoint,
106+
logger: coreServices.logger,
106107
},
107-
async init({ catalog }) {
108+
async init({ catalog, logger }) {
108109
// setAllowedLocationTypes does not add to the list but replaces it, so we preserve the default options of 'file' and 'url'
110+
logger
111+
.child({ source: 'catalog-backend-module-model-catalog"' })
112+
.info("Registering the 'rhdh-rhoai-bridge' location type");
109113
const allowedLocationTypes = ['file', 'url', 'rhdh-rhoai-bridge'];
110114
catalog.setAllowedLocationTypes(allowedLocationTypes);
111115
},

0 commit comments

Comments
 (0)