zones: introduce WithLogger() scan option

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-09-07 13:44:18 +00:00
parent e03e5e0d05
commit 45447275a7
5 changed files with 30 additions and 1 deletions
+1
View File
@@ -17,5 +17,6 @@ var cfg = &Config{
func (cfg *Config) LoadZones(resolve bool) (*zones.Zones, error) {
return zones.New(cfg.Base, cfg.Domain,
zones.ResolvePublicAddresses(resolve),
zones.WithLogger(log),
)
}
+1
View File
@@ -7,6 +7,7 @@ import (
"darvaza.org/slog"
)
// TODO: make log level configurable via flags
var (
log = zerolog.New(nil, slog.Debug)
)