Add debugging

This commit is contained in:
Tyler 2018-08-05 00:16:15 -04:00
parent a11e9d8375
commit 90407628e0
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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()