From cb620f2a4cabebccc82f7fb071f2b7b821452cb4 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 23 Apr 2018 19:24:00 +0900 Subject: [PATCH] ing --- crawler/discovery/discovery-crawler.go | 2 +- service/DiscoveryService.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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