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

Use async qute templating for email notifications #1969

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

barreiro
Copy link
Collaborator

@barreiro barreiro commented Sep 6, 2024

There have been reports of IO treads blocked while sending out email notifications.

Since horreum uses the async email extension, the other possible cause is qute templating.

Copy link
Member

@lampajr lampajr left a comment

Choose a reason for hiding this comment

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

Hey @barreiro, even if I am not that sure about There have been reports of IO treads blocked while sending out email notifications. as I couldn't find any confirmation the emails were the root cause I think this PR looks good anyway.

I just left a minor comment, which is more a question.

@@ -47,7 +49,7 @@ public class EmailPlugin implements NotificationPlugin {
@Inject
ReactiveMailer mailer;

private final Logger log = Logger.getLogger(getClass());
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason why you switched from a custom logger in favor of the default io.quarkus.logging.Log?

Copy link
Member

Choose a reason for hiding this comment

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

@barreiro please can you answer this question?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Quarkus simplified logging is the idiomatic (and recommended) way to log in quarkus.

It does not change the functionality: the Logger will be created for you and the static calls will be routed to that instance.

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense, then I think we can convert all the other loggers to this one to be consistent across the whole codebase. I will create a "good first issue" to keep track of this :)

Copy link
Member

Choose a reason for hiding this comment

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

Created #1993

@johnaohara johnaohara merged commit 1131f36 into Hyperfoil:master Sep 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants