|
@@ -73,7 +73,7 @@ func PingTask(ctx context.Context, t string, wg *sync.WaitGroup, pingType int, h
|
|
|
|
|
|
if rest.Error() == nil {
|
|
|
delay := rest.Result()
|
|
|
- glog.Debug(ctx, "[func:IcmpPing] Finish Addr:", addr, delay, "ms")
|
|
|
+ glog.Info(ctx, "[func:IcmpPing] Finish Addr:", addr, delay, "ms")
|
|
|
stat.AvgDelay = stat.AvgDelay + rest.Result()
|
|
|
if stat.MaxDelay < delay {
|
|
|
stat.MaxDelay = delay
|
|
@@ -83,7 +83,7 @@ func PingTask(ctx context.Context, t string, wg *sync.WaitGroup, pingType int, h
|
|
|
}
|
|
|
stat.RevcPk = stat.RevcPk + 1
|
|
|
} else {
|
|
|
- glog.Debug(ctx, "[func:StartPing IcmpPing] ID:", i, " IP:", addr, "| err:", rest.Error())
|
|
|
+ glog.Info(ctx, "[func:StartPing IcmpPing] ID:", i, " IP:", addr, "| err:", rest.Error())
|
|
|
lossPK = lossPK + 1
|
|
|
}
|
|
|
stat.SendPk = stat.SendPk + 1
|
|
@@ -96,7 +96,7 @@ func PingTask(ctx context.Context, t string, wg *sync.WaitGroup, pingType int, h
|
|
|
} else {
|
|
|
stat.AvgDelay = 0.0
|
|
|
}
|
|
|
- glog.Debug(ctx, "[func:IcmpPing] Finish Addr:", addr, " MaxDelay:", stat.MaxDelay, " MinDelay:", stat.MinDelay, " AvgDelay:", stat.AvgDelay, " Revc:", stat.RevcPk, " LossPK:", stat.LossPk)
|
|
|
+ glog.Info(ctx, "[func:IcmpPing] Finish Addr:", addr, " MaxDelay:", stat.MaxDelay, " MinDelay:", stat.MinDelay, " AvgDelay:", stat.AvgDelay, " Revc:", stat.RevcPk, " LossPK:", stat.LossPk)
|
|
|
} else {
|
|
|
stat.AvgDelay = 0.00
|
|
|
stat.MinDelay = 0.00
|