-
Notifications
You must be signed in to change notification settings - Fork 4
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
Remove un-necessary exception trace in logs #605
base: release23.3-SNAPSHOT
Are you sure you want to change the base?
Conversation
@ankurjuneja: the original intent on that was to capture the stacktrace. |
Also, I dont know anything about your use-case, but if this warning is being triggered for a valid usage, should we be more declarative with this warning? Maybe let the table opt-out of this validation? Whether an exception is logged or not, is the data that is hitting this warning a valid use-case for the pattern of that center, or not? |
The warning is not a valid use-case for the pattern of TNPRC, they don't record timestamps in housing entries. |
there is an existing option to opt-out of this warning but how does logging stack call trace help here? |
@ankurjuneja - see below:
I thought you mentioned this but I dont see it in the thread above. Anyway, if TNPRC doesnt is treating housing as date-only, it seems like there are more direct ways to address that. You probably know that TriggerScriptHelper has this:
Seems like a simply solution is to: a) Overload that method to add a variant that lets the caller supply the value of dateOnly. The JS code calling this probably should grab the value of removeTimeFromDate and pass this. This way we only have one place in the code controls that behavior. b) I dont see any code actually calling TriggerScriptHelper.closeHousingRecords(); however, I dont have all the NPRC modules locally. If only one or two files are actually calling it, maybe we could just modify the existing method instead of overloading. But the general point is that if TNPRC's housing is going to behave as though it is date-only, you ought to just make the table declare that, and if any EHR code doesnt respect this (which is very possible for something like housing which is assumed to be datetime everywhere else), then fix that. |
Rationale
There is an un-necessary exception object getting logged in logs.