Merge pull request #106 from ngtuna/netstats-warning

omit ethstats weird warning msg
This commit is contained in:
Tuna 2018-07-27 14:17:22 +07:00 committed by GitHub
commit 384a391b92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -315,7 +315,7 @@ func (s *Service) readLoop(conn *websocket.Conn) {
// Make sure the request is valid and doesn't crash us // Make sure the request is valid and doesn't crash us
request, ok := msg["emit"][1].(map[string]interface{}) request, ok := msg["emit"][1].(map[string]interface{})
if !ok { if !ok {
log.Warn("Invalid stats history request", "msg", msg["emit"][1]) log.Debug("Invalid stats history request", "msg", msg["emit"][1])
s.histCh <- nil s.histCh <- nil
continue // Ethstats sometime sends invalid history requests, ignore those continue // Ethstats sometime sends invalid history requests, ignore those
} }