Skip to content

Commit

Permalink
add unknown alert log
Browse files Browse the repository at this point in the history
  • Loading branch information
andyxning committed Nov 29, 2016
1 parent bedf063 commit 31ed9cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sink/callback/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ func (cb *callback) Sink(kind string, alert models.EventAlert) {
return
}
glog.Errorf("associate kind node with a none node event alert. %v", alert)
default:
glog.Errorf("unknown event alert. %#v", alert)
}
}

Expand Down
2 changes: 2 additions & 0 deletions sink/stdout/stdout.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func (so *stdout) Sink(kind string, alert models.EventAlert) {
return
}
glog.Errorf("associate kind node with a none node event alert. %v", alert)
default:
glog.Errorf("unknown event alert. %#v", alert)
}
}

Expand Down

0 comments on commit 31ed9cd

Please sign in to comment.