misc: each module now has its own tagged logging

This commit is contained in:
evilsocket 2019-02-12 15:16:02 +01:00
commit 9cd4e380fb
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
47 changed files with 343 additions and 349 deletions

View file

@ -3,8 +3,6 @@ package http_proxy
import (
"net"
"sync"
"github.com/bettercap/bettercap/log"
)
type Host struct {
@ -27,7 +25,6 @@ func NewHost(name string) *Host {
ph.Address = make(net.IP, len(addrs[0]))
copy(ph.Address, addrs[0])
} else {
log.Error("Could not resolve %s: %s", ph.Hostname, err)
ph.Address = nil
}
}(h)