#6499 change log level to warning for log message issued in exception…#6500
#6499 change log level to warning for log message issued in exception…#6500pkiraly wants to merge 1 commit intoIQSS:developfrom
Conversation
|
@pkiraly I scrolled through the 20 files you changed and I think your change is fine (thought I don't know how "chatty" the logs will become). Before we move this to QA, can you please provide a list of what to test? |
|
@pdurbin The whole thing comes from the following scenario. A user get blank screen after creating a Dataverse. I investigated the case, and I found the following message in the Glassfish log: Before that there are hundreds of log entries similar to the first two (edu.harvard.iq.dataverse.util.BundleUtil, string found: ....) entries, which are in my context is not an important information, and makes the important NoResultException almost invisible (like a needle in a haystack). This change makes the entry [WARNING], so I can filter it. I haven't check the other exceptions, so I can not tell you exact use cases for testing them. |
|
@pkiraly thanks, I'm going to move this to code review so I can get some opinions from others. I'm sort of wondering if you'd be willing to make a smaller pull request changing just the files that are affecting you directly. 2 files instead of 20 files or whatever. That way, it becomes clear exactly what to test. Oh, also, if you want, you could read and edit our guidance on logging here: http://guides.dataverse.org/en/4.18.1/developers/coding-style.html#logging Here's a screenshot: |
|
@pdurbin Thanks! I know it. The problem is clearly this: if you turn off fine level logging, and your exceptions throws fine log, you will not catch the exceptions. The exceptions I checked in this pull requests seems to be important enough to be on the radar. I'll create another pull request with the minimal set. |
|
This PR was developed by Göttingen eResearch Alliance, Germany, and funded by SSHOC, "Social Sciences and Humanities Open Cloud". SSHOC has received funding from the European Union’s Horizon 2020 project call H2020-INFRAEOSC-04-2018, grant agreement #823782. |

… handling
What this PR does / why we need it: This pull request make errors and non error messages separated in the log.
Which issue(s) this PR closes: #6499 Change logging level from fine to warn for exceptions
Is there a release notes update needed for this change?: Improve logging