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

Alert email mentions backlog even if no backlog was set #1163

Closed
lennartkoopmann opened this Issue May 20, 2015 · 3 comments

Comments

Projects
None yet
4 participants
@lennartkoopmann
Member

lennartkoopmann commented May 20, 2015

Alert emails are mentioning a backlog even if no backlog was configured:

Last messages accounting for this alert:
/end of email

You can reproduce this by triggering an alert email with backlog set to 0 in alert condition.

@lennartkoopmann lennartkoopmann added the bug label May 20, 2015

@lennartkoopmann lennartkoopmann modified the milestones: 1.2.0, 1.1.0 May 20, 2015

@joschi

This comment has been minimized.

Contributor

joschi commented May 21, 2015

Could you please check the template being used for that alert? The default template should only print this line ("Last message […]") if the backlog contains at least 1 message: https://github.com/Graylog2/graylog2-server/blob/1.1.0-beta.2/graylog2-server/src/main/java/org/graylog2/alerts/FormattedEmailAlertSender.java#L46-52

@lennartkoopmann

This comment has been minimized.

Member

lennartkoopmann commented Jun 1, 2015

Thanks! Will check later today.

@dennisoelkers

This comment has been minimized.

Member

dennisoelkers commented Jun 2, 2015

Fixed in fdcd77a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment