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

Do not send email too frequently #1994

Merged
merged 1 commit into from
Nov 25, 2020

Conversation

majecty
Copy link
Contributor

@majecty majecty commented Nov 25, 2020

No description provided.

@majecty majecty requested a review from junha1 November 25, 2020 02:15
None => false,
};
if !sent_recently {
email_alarm.send(&format!("{} {} {}", thread_name, log_target, log_message));
Copy link
Contributor

Choose a reason for hiding this comment

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

Make sure that this doesn't cause another log. It will lead to a deadlock. If not, LGTM.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The send function does not use log.

@majecty
Copy link
Contributor Author

majecty commented Nov 25, 2020

The test succeeds in my local machine.

@majecty majecty merged commit 6e67d80 into CodeChain-io:rc-2.2.x Nov 25, 2020
@majecty majecty deleted the f/mail-log-limit branch November 25, 2020 05:06
@majecty majecty mentioned this pull request Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants