-
Notifications
You must be signed in to change notification settings - Fork 266
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
[IDEA] Transformer Logging Not Consistent #5524
Comments
Not sure if I agree that all transformers should go to the server log. These are channel/message errors, and they get logged with the message. It could make for a very busy server log with no good way to filter what you don't want to see. Transformer errors are also more likely to unintentionally contain PHI, which many people would not want going to the server logs. @pladesma can you share more about the Fix that was committed next week and how this issue was addressed? |
This is a good point. We may want to hold off on this for 4.3 and think of a better solution. We probably want to make this consistent, but the other way actually, where none of the message-specific scripts send errors to the server log when an exception gets thrown. The deploy/undeploy scripts still should, because those are not message-specific. And then, perhaps we could add an option in the channel settings so you can decide whether or not you want message script-thrown errors to be sent to the server log. Of course this would be less of a problem if we had better ways to filter the server log in the UI, but that would be a larger and separate issue. |
I like the idea of it being a setting we could toggle on and off by channel. It could even be off by default to prevent any unintentional logging. |
Describe the bug
Source and destination transformers do not log to the Server Log console (or mirth.log on the server). This presents challenges when integrating with log aggregation products.
To Reproduce
throw "source transformer error"
This does not happen on response transformers. If you put the throw in your response transformer, it will display in the server log.
Expected behavior
ALL transformer steps should log an error in the server log. The behavior across transformers should be consistent.
Actual behavior
No entry gets added to the server log.
Screenshots
Sample channel attached
Environment (please complete the following information):
Workaround(s)
Have to wrap every JS Transformer Step in a try/catch block and add a
logger.error
statement to log out the exception.Example Channel Attached (modified version of channel from jonb to demonstrate the issue)
Pruner Experiment.zip
The text was updated successfully, but these errors were encountered: