Uh oh!
There was an error while loading. Please reload this page.
Ticket 45210: Fall back quietly when failing to add demographics source - #124
Ticket 45210: Fall back quietly when failing to add demographics source#124labkey-jeckels wants to merge 1 commit into
Conversation
bbimber
commented
May 25, 2022
@labkey-jeckels do you know more about what sort of cases induce this issue? While I appreciate your point about opt-in to errors and appreciate the point about not wanting to spam the logs with tons of errors, I still dont think I have a 100% personal handle on what causes this disconnect and what's the right behavior within the customizer. I'd rather see whether we can alter the code within LaboratoryTableCustomizer or DemographicsSource to differentiate "real" bad configuration from the permissions case, which is a different condition. Looking quickly, I think validateKey() could test permissions, return false, and avoid this logging. I can open a PR on that. |
bbimber
commented
May 25, 2022
@labkey-jeckels what about this? bimberlabinternal#26 |
labkey-jeckels
commented
May 26, 2022
Thanks for the review, Ben. I commented in the alternative PR with more info. |
Rationale
The previous attempt to quiet logging about failing to resolve demographics sources (in this case, because of linked schema permission changes), #114, either focused on the wrong spot or there's another codepath that we didn't catch.
Example logging from production that's filling the log files:
Changes