Merge pull request #15656 from backstage/rugvip/logfixes

backend-app-api: switch plugin log label pluginId->plugin
This commit is contained in:
Patrik Oldsberg
2023-01-10 13:45:28 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-app-api': patch
---
Tweaked the plugin logger to use `plugin` as the label for the plugin ID, rather than `pluginId`.
@@ -28,7 +28,7 @@ export const loggerFactory = createServiceFactory({
},
async factory({ rootLogger }) {
return async ({ plugin }) => {
return rootLogger.child({ pluginId: plugin.getId() });
return rootLogger.child({ plugin: plugin.getId() });
};
},
});