Add debugging
This commit is contained in:
parent
a11e9d8375
commit
90407628e0
|
@ -45,6 +45,8 @@ func NewFileProvider(file string) HostProvider {
|
|||
}
|
||||
|
||||
func (f *FileHosts) Get(domain string) ([]string, bool) {
|
||||
logger.Debug("Checking file provider for %s", domain)
|
||||
|
||||
f.mu.RLock()
|
||||
defer f.mu.RUnlock()
|
||||
domain = strings.ToLower(domain)
|
||||
|
|
|
@ -65,6 +65,8 @@ func NewRedisProvider(rc *redis.Client, key string) HostProvider {
|
|||
}
|
||||
|
||||
func (r *RedisHosts) Get(domain string) ([]string, bool) {
|
||||
logger.Debug("Checking redis provider for %s", domain)
|
||||
|
||||
r.mu.RLock()
|
||||
defer r.mu.RUnlock()
|
||||
|
||||
|
|
Loading…
Reference in New Issue