Chore: Adding debug logs on successful plugin loads #10100
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
What changes did you make? (Give an overview)
Added some debug logging to lib/config/plugins.js on successful plugin load. These statements note the plugin name (as specified in config), the resolved plugin name, and the version of the loaded plugin (if we can determine it).
This logic is only executed if debug is actually enabled. This is because the most reliable way I know of for finding a plugin version is to
Is there anything you'd like reviewers to focus on?
Example output when running
(Note: Looks a bit different than when run on console due to output redirect. Just ignore the timestamps.)
Inspired by #10090. This output could be useful for users who expect a certain plugin version to be loaded, but they get a different version due to either global/local mismatching or npm/yarn shenanigans.
@not-an-aardvark Good call, I've added the resolved path.
Here's how the output looks now: