{"action":"created","issue":{"url":"https://api.github.com/repos/micronaut-projects/micronaut-core/issues/447","repository_url":"https://api.github.com/repos/micronaut-projects/micronaut-core","labels_url":"https://api.github.com/repos/micronaut-projects/micronaut-core/issues/447/labels{/name}","comments_url":"https://api.github.com/repos/micronaut-projects/micronaut-core/issues/447/comments","events_url":"https://api.github.com/repos/micronaut-projects/micronaut-core/issues/447/events","html_url":"https://github.com/micronaut-projects/micronaut-core/issues/447","id":345322181,"node_id":"MDU6SXNzdWUzNDUzMjIxODE=","number":447,"title":"Feature request: Improve logging of GORM config errors","user":{"login":"rmorrise","id":8999824,"node_id":"MDQ6VXNlcjg5OTk4MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/8999824?v=4","gravatar_id":"","url":"https://api.github.com/users/rmorrise","html_url":"https://github.com/rmorrise","followers_url":"https://api.github.com/users/rmorrise/followers","following_url":"https://api.github.com/users/rmorrise/following{/other_user}","gists_url":"https://api.github.com/users/rmorrise/gists{/gist_id}","starred_url":"https://api.github.com/users/rmorrise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmorrise/subscriptions","organizations_url":"https://api.github.com/users/rmorrise/orgs","repos_url":"https://api.github.com/users/rmorrise/repos","events_url":"https://api.github.com/users/rmorrise/events{/privacy}","received_events_url":"https://api.github.com/users/rmorrise/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-27T18:23:12Z","updated_at":"2018-07-29T05:15:23Z","closed_at":null,"author_association":"NONE","body":"It would be really helpful if the framework could give me more feedback (by default) if GORM is configured incorrectly.\r\n\r\n### Task List\r\n\r\n- [x] Steps to reproduce provided\r\n- [x] Stacktrace (if present) provided\r\n- [x] Example that reproduces the problem uploaded to Github\r\n- [x] Full description of the issue provided (see below)\r\n\r\n### Steps to Reproduce\r\n\r\n1. Create an empty micronaut groovy project\r\n2. Add these libraries to build.gradle;\r\n```\r\ncompile \"io.micronaut.configuration:mongo-gorm\"\r\ntestCompile \"de.flapdoodle.embed:de.flapdoodle.embed.mongo:2.0.1\"\r\n```\r\n3. Use default settings in logback.xml \r\n4. Create a GORM service interface\r\n5. Start up the application and inject the service into an application class\r\n\r\n### Expected Behaviour\r\n\r\nThe following info should be logged at the WARN or ERROR level:\r\n```\r\nConfiguration: io.micronaut.configuration.mongo.gorm will not be loaded due to failing conditions:\r\n* No entities found on classpath\r\nConfiguration: io.micronaut.configuration.mongo.reactive will not be loaded due to failing conditions:\r\n* Required property [mongodb] not present\r\n```\r\n\r\n### Actual Behaviour\r\n\r\nThe only feedback I get with default logger settings is this:\r\n\r\n```\r\nMessage: No bean of type [com.mycompany.service.MyGormService] exists. If you are using Java or Kotlin make sure you have enabled annotation processing.\r\nPath Taken: new DataLoader([ClubService clubService])\r\n```\r\n\r\n### Environment Information\r\n\r\n- **Operating System**: Win64\r\n- **Micronaut Version:** 1.0.0.M3\r\n- **JDK Version:** 1.8.0_172\r\n\r\n### Example Application\r\n\r\n[https://github.com/rmorrise/gorm-feedback](https://github.com/rmorrise/gorm-feedback)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/micronaut-projects/micronaut-core/issues/comments/408652712","html_url":"https://github.com/micronaut-projects/micronaut-core/issues/447#issuecomment-408652712","issue_url":"https://api.github.com/repos/micronaut-projects/micronaut-core/issues/447","id":408652712,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODY1MjcxMg==","user":{"login":"jameskleeh","id":1583789,"node_id":"MDQ6VXNlcjE1ODM3ODk=","avatar_url":"https://avatars2.githubusercontent.com/u/1583789?v=4","gravatar_id":"","url":"https://api.github.com/users/jameskleeh","html_url":"https://github.com/jameskleeh","followers_url":"https://api.github.com/users/jameskleeh/followers","following_url":"https://api.github.com/users/jameskleeh/following{/other_user}","gists_url":"https://api.github.com/users/jameskleeh/gists{/gist_id}","starred_url":"https://api.github.com/users/jameskleeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameskleeh/subscriptions","organizations_url":"https://api.github.com/users/jameskleeh/orgs","repos_url":"https://api.github.com/users/jameskleeh/repos","events_url":"https://api.github.com/users/jameskleeh/events{/privacy}","received_events_url":"https://api.github.com/users/jameskleeh/received_events","type":"User","site_admin":false},"created_at":"2018-07-29T05:15:23Z","updated_at":"2018-07-29T05:15:23Z","author_association":"CONTRIBUTOR","body":"@rmorrise I don't agree that the log statements should be logged at a higher priority. It can be quite common for a given configuration to not be loaded. That would lead to things being logged that you would likely believe shouldn't. \r\n\r\nThere is a section in the documentation that talks about debugging why a given bean isn't loaded.\r\nhttps://docs.micronaut.io/latest/guide/index.html#_debugging_conditional_beans"}}
{"actor":{"display_login":"jameskleeh"}}