From 1155d16b9dc2394d303645ca803802152cb53283 Mon Sep 17 00:00:00 2001 From: geek Date: Mon, 9 Jul 2018 20:06:29 +0900 Subject: [PATCH] ing --- service/CollectorService.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/service/CollectorService.go b/service/CollectorService.go index 57d919b..9e5d80f 100644 --- a/service/CollectorService.go +++ b/service/CollectorService.go @@ -120,12 +120,13 @@ func (s *CollectorService) collectTask(sensorConfig *ocmsc.SensorConfig) { result, err := s.CrawlerService.Get(sensorConfig.SensorID.String()) if nil != err { logging.Logger().Errorf("Cannot get data from crawler[%s] %v", sensorConfig.Crawler.MetaCrawlerKey, err) - return + m.Success = false + } else { + m.Success = true + m.Data = result } - m.Data = result m.EndDate = occu.NowPtr() - m.Success = true if err := s.ProbeService.Send("MetricService.Send", m); nil != err { logging.Logger().Errorf("Cannot send data from config id[%s] of crawler[%s] %v", sensorConfig.SensorID, sensorConfig.Crawler.MetaCrawlerKey, err)