mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
don't write to notification journal when testing notifier/rule
This commit is contained in:
parent
86bc462bc1
commit
dfa5d17670
@ -77,6 +77,10 @@ func (n *notificationService) sendNotifications(evalContext *EvalContext, notifi
|
||||
//send notification
|
||||
success := not.Notify(evalContext) == nil
|
||||
|
||||
if evalContext.IsTestRun {
|
||||
return nil
|
||||
}
|
||||
|
||||
//write result to db.
|
||||
cmd := &m.RecordNotificationJournalCommand{
|
||||
OrgId: evalContext.Rule.OrgId,
|
||||
|
Loading…
Reference in New Issue
Block a user