improve: 添加 debug 日志

This commit is contained in:
Mmx233
2022-12-08 18:41:22 +08:00
parent 1f5ba65137
commit d76f40d38e
4 changed files with 6 additions and 79 deletions

View File

@@ -9,6 +9,7 @@ import (
"fmt"
dnsUtil "github.com/Mmx233/BitSrunLoginGo/dns/util"
"github.com/Mmx233/tool"
log "github.com/sirupsen/logrus"
"math/rand"
"net/http"
"net/url"
@@ -28,6 +29,7 @@ func New(ttl uint, conf map[string]interface{}, Http *http.Client) (*DnsProvider
TTL: ttl,
Http: tool.NewHttpTool(Http),
}
defer log.Debugln("aliun dns provider:", &p)
return &p, dnsUtil.DecodeConfig(conf, &p)
}