This commit is contained in:
crusader 2018-03-27 00:36:26 +09:00
parent 348cb63eac
commit 25d97c07f9

View File

@ -36,6 +36,7 @@ func DiscoverZone(probeService *oopcs.ProbeService, requesterID string, dz *disc
discoverer.stopWg.Wait() discoverer.stopWg.Wait()
discoverer.complete() discoverer.complete()
logging.Logger().Debugf("Discovery: Discovery has been complete")
} }
func DiscoverHost(probeService *oopcs.ProbeService, requesterID string, zone *discoveryM.Zone, dh *discoveryM.DiscoveryHost) { func DiscoverHost(probeService *oopcs.ProbeService, requesterID string, zone *discoveryM.Zone, dh *discoveryM.DiscoveryHost) {
@ -46,6 +47,7 @@ func DiscoverHost(probeService *oopcs.ProbeService, requesterID string, zone *di
discoverer.discoverHost(probeService, requesterID, zone, dh) discoverer.discoverHost(probeService, requesterID, zone, dh)
discoverer.stopWg.Wait() discoverer.stopWg.Wait()
discoverer.complete() discoverer.complete()
logging.Logger().Debugf("Discovery: Discovery has been complete")
} }
func DiscoverPort(probeService *oopcs.ProbeService, requesterID string, host *discoveryM.Host, dp *discoveryM.DiscoveryPort) { func DiscoverPort(probeService *oopcs.ProbeService, requesterID string, host *discoveryM.Host, dp *discoveryM.DiscoveryPort) {
@ -56,6 +58,7 @@ func DiscoverPort(probeService *oopcs.ProbeService, requesterID string, host *di
discoverer.discoverPort(probeService, requesterID, host, dp) discoverer.discoverPort(probeService, requesterID, host, dp)
discoverer.stopWg.Wait() discoverer.stopWg.Wait()
discoverer.complete() discoverer.complete()
logging.Logger().Debugf("Discovery: Discovery has been complete")
} }
func DiscoverService(probeService *oopcs.ProbeService, requesterID string, port *discoveryM.Port, ds *discoveryM.DiscoveryService) { func DiscoverService(probeService *oopcs.ProbeService, requesterID string, port *discoveryM.Port, ds *discoveryM.DiscoveryService) {
@ -66,6 +69,7 @@ func DiscoverService(probeService *oopcs.ProbeService, requesterID string, port
discoverer.discoverService(probeService, requesterID, port, ds) discoverer.discoverService(probeService, requesterID, port, ds)
discoverer.stopWg.Wait() discoverer.stopWg.Wait()
discoverer.complete() discoverer.complete()
logging.Logger().Debugf("Discovery: Discovery has been complete")
} }
func Stop() { func Stop() {