diff --git a/crawler/discovery/discovery-crawler.go b/crawler/discovery/discovery-crawler.go index 94b771a..d8cf081 100644 --- a/crawler/discovery/discovery-crawler.go +++ b/crawler/discovery/discovery-crawler.go @@ -16,7 +16,7 @@ func (c *DiscoveryCrawler) String() string { return "Discovery" } -func (c *DiscoveryCrawler) Auth(auth map[string]string) error { +func (c *DiscoveryCrawler) Auth(auth map[string]interface{}) error { return nil } diff --git a/service/DiscoveryService.go b/service/DiscoveryService.go index e0259ee..36e0a69 100644 --- a/service/DiscoveryService.go +++ b/service/DiscoveryService.go @@ -5,6 +5,8 @@ import ( "reflect" "sync" + "git.loafle.net/commons/logging-go" + cda "git.loafle.net/commons/di-go/annotation" cdr "git.loafle.net/commons/di-go/registry" ocdm "git.loafle.net/overflow/commons-go/discovery/model" @@ -126,8 +128,10 @@ func (s *DiscoveryService) handleDiscovery(requesterID string, discoveryFunc fun } switch data.Type { case discoverer.DiscoveryDataTypeStart: + logging.Logger().Debugf("DiscoveryService.DiscoveryStart") s.ProbeService.Send("DiscoveryService.DiscoveryStart", requesterID, data.Time) case discoverer.DiscoveryDataTypeStop: + logging.Logger().Debugf("DiscoveryService.DiscoveryStop") s.ProbeService.Send("DiscoveryService.DiscoveryStop", requesterID, data.Time) data.Release() return nil