aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2019-09-10 01:49:42 +0700
committerShulhan <m.shulhan@gmail.com>2019-09-10 01:49:55 +0700
commit5e417baa874423db76b07775d27f2877ca44fa73 (patch)
tree6fc1a167f4da9797c7b7fb9263e5a88e889bcb72
parent22850876e32fc6ff8be19ddcfc1712688481c159 (diff)
downloadpakakeh.go-5e417baa874423db76b07775d27f2877ca44fa73.tar.xz
ini: write the readed ini object only if debug level is 3 on Open
-rw-r--r--lib/ini/ini.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ini/ini.go b/lib/ini/ini.go
index bce5a23f..5bc1ea7b 100644
--- a/lib/ini/ini.go
+++ b/lib/ini/ini.go
@@ -34,7 +34,7 @@ func Open(filename string) (in *Ini, err error) {
in, err = reader.parseFile(filename)
- if debug.Value >= 1 && err == nil {
+ if debug.Value >= 3 && err == nil {
err = in.Write(os.Stdout)
}