mirror of
https://github.com/Luzifer/named-blacklist.git
synced 2024-11-08 07:20:07 +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) {
|
||||
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)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue