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:
parent
8b5f0a60ef
commit
4795a47c60
1 changed files with 7 additions and 2 deletions
9
main.go
9
main.go
|
@ -60,9 +60,12 @@ func main() {
|
||||||
go func(p providerDefinition) {
|
go func(p providerDefinition) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
|
|
||||||
|
logger := log.WithField("provider", p.Name)
|
||||||
|
logger.Info("Starting domain list extraction")
|
||||||
|
|
||||||
entries, err := getDomainList(p)
|
entries, err := getDomainList(p)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithField("provider", p.Name).
|
logger.
|
||||||
WithError(err).
|
WithError(err).
|
||||||
Fatal("Unable to get domain list")
|
Fatal("Unable to get domain list")
|
||||||
}
|
}
|
||||||
|
@ -80,10 +83,12 @@ func main() {
|
||||||
whitelist = addIfNotExists(whitelist, e)
|
whitelist = addIfNotExists(whitelist, e)
|
||||||
|
|
||||||
default:
|
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)
|
}(p)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue