Skip to content

Commit

Permalink
remove SSH login attempts from urgent notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
korenyoni committed Feb 23, 2018
1 parent fe389f9 commit bed30da
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/notify/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ func (em *Email) sendMailUrgent(e event.Event, title string) error {
func isUrgent(e event.Event) bool {
urgentRegex := env.GetUrgentRegex()
envName := env.GetEnvName()
if e.Type == constants.SSHFailedAuth || e.Type == constants.SSHInvalidUser {
return true
}
if urgentRegex.FindString(envName) != "" {
return true && e.Type != constants.AggregationEvent
}
Expand Down

0 comments on commit bed30da

Please sign in to comment.