Skip to content

Commit 450f289

Browse files
authored
Add debug logging to model catalog entity provider (#1406)
* Add debug logging to model catalog entity provider Signed-off-by: John Collier <jcollier@redhat.com> * Add changeset Signed-off-by: John Collier <jcollier@redhat.com> --------- Signed-off-by: John Collier <jcollier@redhat.com>
1 parent ee50e93 commit 450f289

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ export class ModelCatalogResourceEntityProvider implements EntityProvider {
160160
catalogKeys = [];
161161
}
162162
let entityList: Entity[] = [];
163+
this.logger.debug(`Found ${catalogKeys.length} model catalogs`);
164+
this.logger.debug(`Fetched ModelCatalog: ${JSON.stringify(catalogKeys)}`);
163165

164166
await Promise.all(
165167
catalogKeys.map(async key => {
@@ -182,7 +184,8 @@ export class ModelCatalogResourceEntityProvider implements EntityProvider {
182184
this.getProviderName();
183185
}
184186
});
185-
187+
this.logger.debug(`Found ${entityList.length} entities`);
188+
this.logger.debug(`Fetched Entities: ${JSON.stringify(entityList)}`);
186189
/** [6]: Add/update the catalog entities that correspond to the models */
187190
await this.connection.applyMutation({
188191
type: 'full',
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# @backstage/plugin-mcp-actions-backend
2+
3+
## 0.1.1-next.0
4+
5+
### Patch Changes
6+
7+
- 6bc0799: Fixed the example in the README for generating a static token by adding a subject field
8+
- Updated dependencies
9+
- @backstage/backend-defaults@0.11.1-next.0
10+
- @backstage/backend-plugin-api@1.4.0
11+
- @backstage/plugin-catalog-node@1.17.1
12+
- @backstage/catalog-client@1.10.1
13+
- @backstage/errors@1.2.7
14+
- @backstage/types@1.2.1
15+
16+
## 0.1.0
17+
18+
### Minor Changes
19+
20+
- 4ed0fb6: Initial implementation of an `mcp-actions` backend
21+
22+
### Patch Changes
23+
24+
- Updated dependencies
25+
- @backstage/catalog-client@1.10.1
26+
- @backstage/backend-defaults@0.11.0
27+
- @backstage/plugin-catalog-node@1.17.1
28+
- @backstage/backend-plugin-api@1.4.0
29+
- @backstage/errors@1.2.7
30+
- @backstage/types@1.2.1

0 commit comments

Comments
 (0)