Here is my wishful thinking.
When error messages are being set in the system. It would be great to number the error message. Here is what I mean. When you look at the screenshot below. You can see that I am getting a decryption error that is being thrown in edit_globals. The issue I have is tracking down where the error came from. If the exact same wording is going to be used in multiple places. It would be great if the standard practice would be to number the error message. So, it would obvious what landed the error message in the log.
So instead of just having this:
error_log("OpenEMR Error : Decryption failed authentication.");
Do this:
error_log("OpenEMR Error : Decryption failed authentication - 270.");