Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions component/outbound/dialer/alive_dialer_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (a *AliveDialerSet) printLatencies() {
for i, dl := range alive {
builder.WriteString(fmt.Sprintf("%4d. [%v] %v: %v\n", i+1, dl.d.property.SubscriptionTag, dl.d.property.Name, latencyString(dl.l, dl.o)))
}
a.log.Infoln(strings.TrimSuffix(builder.String(), "\n"))
a.log.Debugln(strings.TrimSuffix(builder.String(), "\n"))
}

// NotifyLatencyChange should be invoked when dialer every time latency and alive state changes.
Expand Down Expand Up @@ -174,7 +174,7 @@ func (a *AliveDialerSet) NotifyLatencyChange(dialer *Dialer, alive bool) {
a.log.WithFields(logrus.Fields{
"dialer": dialer.property.Name,
"group": a.dialerGroupName,
}).Infof("[NOT ALIVE --%v-> ALIVE]", a.CheckTyp.String())
}).Debugf("[NOT ALIVE --%v-> ALIVE]", a.CheckTyp.String())
}
a.dialerToIndex[dialer] = len(a.inorderedAliveDialerSet)
a.inorderedAliveDialerSet = append(a.inorderedAliveDialerSet, dialer)
Expand All @@ -186,7 +186,7 @@ func (a *AliveDialerSet) NotifyLatencyChange(dialer *Dialer, alive bool) {
a.log.WithFields(logrus.Fields{
"dialer": dialer.property.Name,
"group": a.dialerGroupName,
}).Infof("[ALIVE --%v-> NOT ALIVE]", a.CheckTyp.String())
}).Debugf("[ALIVE --%v-> NOT ALIVE]", a.CheckTyp.String())
// Remove the dialer from inorderedAliveDialerSet.
if index >= len(a.inorderedAliveDialerSet) {
a.log.Panicf("index:%v >= len(a.inorderedAliveDialerSet):%v", index, len(a.inorderedAliveDialerSet))
Expand Down Expand Up @@ -251,7 +251,7 @@ func (a *AliveDialerSet) NotifyLatencyChange(dialer *Dialer, alive bool) {
"_old_dialer": oldDialerName,
"group": a.dialerGroupName,
"network": a.CheckTyp.String(),
}).Infof("Group %vselects dialer", re)
}).Debugf("Group %vselects dialer", re)

a.printLatencies()
} else {
Expand All @@ -260,7 +260,7 @@ func (a *AliveDialerSet) NotifyLatencyChange(dialer *Dialer, alive bool) {
a.log.WithFields(logrus.Fields{
"group": a.dialerGroupName,
"network": a.CheckTyp.String(),
}).Infof("Group has no dialer alive")
}).Debugf("Group has no dialer alive")
}
}
} else {
Expand Down
2 changes: 2 additions & 0 deletions docs/en/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Troubleshooting

Before troubleshooting networking issues, you may wish to set the log level to 'debug' or 'trace' to obtain detailed information about connectivity and latencies.

## No network after `dae suspend`

Do not set dae as the DNS in DHCP setting. For example, you can set `223.5.5.5` as DNS in your DHCP setting.
Expand Down
Loading