Skip to content

Commit

Permalink
events without keys should emit warning log
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed Mar 30, 2020
1 parent 1aeff2a commit e916660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "github.com/CyCoreSystems/ari/v5"
func (s *Server) dialogsForEvent(e ari.Event) (ret []string) {
for _, k := range e.Keys() {
if k == nil {
s.Log.Debug("received nil key for event", "event", e)
s.Log.Warn("received nil key for event", "event", e)
continue
}
ret = append(ret, s.Dialog.List(k.Kind, k.ID)...)
Expand Down

0 comments on commit e916660

Please sign in to comment.