add debug log
This commit is contained in:
parent
e79e5e4e27
commit
e00fc95fdf
|
@ -160,6 +160,10 @@ func (p *Ping) gatherOnce(slist *list.SafeList, ins *PingInstance) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ins *PingInstance) gather(slist *list.SafeList, target string) {
|
func (ins *PingInstance) gather(slist *list.SafeList, target string) {
|
||||||
|
if config.Config.DebugMode {
|
||||||
|
log.Println("D! ping...", target)
|
||||||
|
}
|
||||||
|
|
||||||
labels := map[string]string{"target": target}
|
labels := map[string]string{"target": target}
|
||||||
for k, v := range ins.Labels {
|
for k, v := range ins.Labels {
|
||||||
labels[k] = v
|
labels[k] = v
|
||||||
|
|
Loading…
Reference in New Issue