diff options
| author | Shulhan <ms@kilabit.info> | 2025-01-26 15:44:04 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-01-26 15:44:04 +0700 |
| commit | 3826603fb49edda796c2a5541b39b5bb00d3745c (patch) | |
| tree | ee3f0109c9c1f2745010eb4f71c3e8db996799df /environment.go | |
| parent | a87283b9236f24f62b0a8936ba0b7232c0407c45 (diff) | |
| download | rescached-3826603fb49edda796c2a5541b39b5bb00d3745c.tar.xz | |
all: replace debug package with internal Debug variabel
The [debug.Value] will be removed in the next release of pakakeh.go.
Diffstat (limited to 'environment.go')
| -rw-r--r-- | environment.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/environment.go b/environment.go index 22a8ef1..7df8bcd 100644 --- a/environment.go +++ b/environment.go @@ -10,7 +10,6 @@ import ( "strconv" "strings" - "git.sr.ht/~shulhan/pakakeh.go/lib/debug" "git.sr.ht/~shulhan/pakakeh.go/lib/dns" libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http" "git.sr.ht/~shulhan/pakakeh.go/lib/ini" @@ -142,7 +141,7 @@ func (env *Environment) init() (err error) { _, _ = env.loadResolvConf() } - debug.Value = env.Debug + Debug = env.Debug if env.HttpdOptions.Memfs == nil { env.HttpdOptions.Memfs = mfsWww @@ -193,7 +192,7 @@ func (env *Environment) loadResolvConf() (ok bool, err error) { return false, err } - if debug.Value > 0 { + if Debug > 0 { fmt.Printf("loadResolvConf: %+v\n", rc) } |
