backend-app-api: switch plugin log label pluginId->plugin

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-01-10 13:01:21 +01:00
parent 0097bc9a87
commit e3fca10038
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() });
};
},
});