catalog: use LoggerService instead of winston Logger in ldap module
Hey, I just made a Pull Request!
:heavy_check_mark: Checklist
Changed Packages
| Package Name | Package Path | Changeset Bump | Current Version |
|---|---|---|---|
| @backstage/plugin-catalog-backend-module-ldap | plugins/catalog-backend-module-ldap | patch | v0.5.34-next.2 |
Note that you'll need to run yarn build:api-reports and commit the results of that too.
Hm this is breaking, isn't it. Then you'll have to bump the changeset to minor. Or alternatively, change the code to accept EITHER a logger service or a winston logger, and it somehow converting it internally if needed.
@freben as far as I can see this should not be breaking as the new LoggerService is a subset of the old Logger, so for the consumer it shouldn't matter which one they insert as a dependency.
Try it in a test. Not sure they're type compatible even if the names are the same. Try to pass in (null as unknown) as WinstonLogger) and see if your editor or typescript complains. I'm not at the computer to check atm
I'll try it on monday when I'm on my company computer via local linking in our backstage instance.
Thank you for contributing to Backstage! The changes in this pull request will be part of the 1.27.0 release, scheduled for Tue, 14 May 2024.
Uffizzi Cluster pr-24675 was deleted.