This commit is contained in:
crusader 2018-04-23 19:24:00 +09:00
parent 303b89199d
commit cb620f2a4c
2 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,7 @@ func (c *DiscoveryCrawler) String() string {
return "Discovery" return "Discovery"
} }
func (c *DiscoveryCrawler) Auth(auth map[string]string) error { func (c *DiscoveryCrawler) Auth(auth map[string]interface{}) error {
return nil return nil
} }

View File

@ -5,6 +5,8 @@ import (
"reflect" "reflect"
"sync" "sync"
"git.loafle.net/commons/logging-go"
cda "git.loafle.net/commons/di-go/annotation" cda "git.loafle.net/commons/di-go/annotation"
cdr "git.loafle.net/commons/di-go/registry" cdr "git.loafle.net/commons/di-go/registry"
ocdm "git.loafle.net/overflow/commons-go/discovery/model" ocdm "git.loafle.net/overflow/commons-go/discovery/model"
@ -126,8 +128,10 @@ func (s *DiscoveryService) handleDiscovery(requesterID string, discoveryFunc fun
} }
switch data.Type { switch data.Type {
case discoverer.DiscoveryDataTypeStart: case discoverer.DiscoveryDataTypeStart:
logging.Logger().Debugf("DiscoveryService.DiscoveryStart")
s.ProbeService.Send("DiscoveryService.DiscoveryStart", requesterID, data.Time) s.ProbeService.Send("DiscoveryService.DiscoveryStart", requesterID, data.Time)
case discoverer.DiscoveryDataTypeStop: case discoverer.DiscoveryDataTypeStop:
logging.Logger().Debugf("DiscoveryService.DiscoveryStop")
s.ProbeService.Send("DiscoveryService.DiscoveryStop", requesterID, data.Time) s.ProbeService.Send("DiscoveryService.DiscoveryStop", requesterID, data.Time)
data.Release() data.Release()
return nil return nil