backend-app-api: switch plugin log label pluginId->plugin
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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() });
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user