aboutsummaryrefslogtreecommitdiffstats
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/config.go b/config.go
index 3d581f1..b691291 100644
--- a/config.go
+++ b/config.go
@@ -10,7 +10,7 @@ import (
"github.com/BurntSushi/toml"
"github.com/mpolden/zdns/hosts"
- "github.com/mpolden/zdns/log"
+ "github.com/mpolden/zdns/sql"
)
// Config specifies is the zdns configuration parameters.
@@ -180,11 +180,11 @@ func (c *Config) load() error {
}
switch c.DNS.LogModeString {
case "":
- c.DNS.LogMode = log.ModeDiscard
+ c.DNS.LogMode = sql.LogDiscard
case "all":
- c.DNS.LogMode = log.ModeAll
+ c.DNS.LogMode = sql.LogAll
case "hijacked":
- c.DNS.LogMode = log.ModeHijacked
+ c.DNS.LogMode = sql.LogHijacked
default:
return fmt.Errorf("invalid log mode: %s", c.DNS.LogModeString)
}