1
0
Fork 0
mirror of https://github.com/Luzifer/named-blacklist.git synced 2024-11-08 15:30:06 +00:00

Be a little more verbose

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-08-25 21:18:00 +02:00
parent 8b5f0a60ef
commit 4795a47c60
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -60,9 +60,12 @@ func main() {
go func(p providerDefinition) {
defer wg.Done()
logger := log.WithField("provider", p.Name)
logger.Info("Starting domain list extraction")
entries, err := getDomainList(p)
if err != nil {
log.WithField("provider", p.Name).
logger.
WithError(err).
Fatal("Unable to get domain list")
}
@ -80,10 +83,12 @@ func main() {
whitelist = addIfNotExists(whitelist, e)
default:
log.WithField("provider", p.Name).Fatalf("Inavlid action %q", p.Action)
logger.Fatalf("Inavlid action %q", p.Action)
}
}
logger.WithField("no_entries", len(entries)).Info("Extraction complete")
}(p)
}