Commit d45ee2a4 authored by David Vorick's avatar David Vorick

log auto host announcements better

parent 251a2e7a
......@@ -79,6 +79,7 @@ func (h *Host) managedLearnHostname() {
// no open contracts, there is no reason to notify anyone that the host's
// address has changed.
if hostAcceptingContracts || hostContractCount > 0 {
h.log.Println("Discovered that the external IP address has changed from", hostAutoAddress, "to", autoAddress, "- making a host new host announcement with the change.")
err = h.managedAnnounce(autoAddress)
if err != nil {
// Set h.announced to false, as the address has changed yet the
......@@ -86,7 +87,7 @@ func (h *Host) managedLearnHostname() {
h.mu.Lock()
h.announced = false
h.mu.Unlock()
h.log.Debugln("unable to announce address after upnp-detected address change:", err)
h.log.Println("unable to announce address after upnp-detected address change:", err)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment