add debug statement

This commit is contained in:
Niko Storni 2019-12-24 23:27:16 +01:00
parent 1f9a645c57
commit 8abf6ad255

View file

@ -115,9 +115,10 @@ func (i *IPPool) ReleaseIP(ip string) {
if localIP.IP == ip { if localIP.IP == ip {
localIP.InUse = false localIP.InUse = false
localIP.LastUse = time.Now() localIP.LastUse = time.Now()
break return
} }
} }
util.SendErrorToSlack("something went wrong while releasing the IP %s as we reached the end of the function", ip)
} }
func (i *IPPool) SetThrottled(ip string) { func (i *IPPool) SetThrottled(ip string) {