Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DefaultGrailsPluginManager: Add necessary log information when loading plugins #12538

Closed
rainboyan opened this issue May 28, 2022 · 0 comments
Closed

Comments

@rainboyan
Copy link
Contributor

Expected Behavior

Developers need to know how many core plugins and user-defined plugins are loaded in total and how long it took.

Currently, only part of the information is displayed, this needs to be improved.

Like this,

2022-05-28 02:52:51.758  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Attempting to load [19] core plugins
2022-05-28 02:52:51.893  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Attempting to load [0] user defined plugins
...
2022-05-28 02:52:51.896  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Total 19 plugins loaded successfully, take in 138ms.

Actual Behaviour

2022-05-28 22:07:25.334  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Attempting to load [0] user defined plugins
2022-05-28 22:07:25.334  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [jsonView] with version [unspecified] loaded successfully
2022-05-28 22:07:25.334  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [restResponder] with version [5.1.7] loaded successfully
2022-05-28 22:07:25.334  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [i18n] with version [5.1.7] loaded successfully
2022-05-28 22:07:25.334  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [core] with version [5.1.7] loaded successfully
2022-05-28 22:07:25.334  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [codecs] with version [5.1.7] loaded successfully
2022-05-28 22:07:25.334  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [eventBus] with version [SNAPSHOT] loaded successfully
2022-05-28 22:07:25.335  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [assetPipeline] with version [3.0.7] loaded successfully
2022-05-28 22:07:25.335  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [dataSource] with version [5.1.7] loaded successfully
2022-05-28 22:07:25.335  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [urlMappings] with version [5.1.7] loaded successfully
2022-05-28 22:07:25.335  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [controllers] with version [5.1.7] loaded successfully
2022-05-28 22:07:25.335  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [domainClass] with version [5.1.7] loaded successfully
2022-05-28 22:07:25.335  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [converters] with version [5.1.7] loaded successfully
2022-05-28 22:07:25.335  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [controllersAsync] with version [SNAPSHOT] loaded successfully
2022-05-28 22:07:25.335  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [mimeTypes] with version [5.1.7] loaded successfully
2022-05-28 22:07:25.335  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [hibernate] with version [7.2.2] loaded successfully
2022-05-28 22:07:25.335  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [services] with version [5.1.7] loaded successfully
2022-05-28 22:07:25.335  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [interceptors] with version [5.1.7] loaded successfully
2022-05-28 22:07:25.336  INFO --- [  restartedMain] g.plugins.DefaultGrailsPluginManager     : Grails plug-in [cache] with version [5.0.0] loaded successfully

Steps To Reproduce

  1. grails create-app org.grails.demo.grails-load-plugin-info-demo
  2. grails run-app

Environment Information

MacOS 11.6
JDK 11.0.15
Grails 5.1.7

Example Application

No response

Version

Grails 4, 5

@rainboyan rainboyan closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant