Skip to content
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

TRUNK-6196: Email sending fails due to errors with velocity log conf… #4399

Merged
merged 2 commits into from
Oct 6, 2023

Conversation

mseaton
Copy link
Member

@mseaton mseaton commented Oct 6, 2023

…iguration

Issue I worked on

see https://issues.openmrs.org/browse/TRUNK-6196

@ibacher ibacher changed the title TRUNK-6196 - Email sending fails due to errors with velocity log conf… TRUNK-6196: Email sending fails due to errors with velocity log conf… Oct 6, 2023
@@ -40,7 +41,11 @@ public class VelocityMessagePreparator implements MessagePreparator {
public VelocityMessagePreparator() throws MessageException {
try {
engine = new VelocityEngine();
engine.init();
Properties props = new Properties();
props.put("runtime.log.logsystem.class", "org.apache.velocity.runtime.log.SimpleLog4JLogSystem");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does look like Velocity recommends the Log4JLogChuteclass over this one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed. Want to have a look?

@mseaton mseaton requested a review from ibacher October 6, 2023 18:40
Copy link
Member

@mogoodrich mogoodrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really know much to weigh in too intelligently, but LGTM...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants