From 82c74b4f85d743b5c4e989537d6f2b3bf53815ee Mon Sep 17 00:00:00 2001 From: W192547975 <138874985+W192547975@users.noreply.github.com> Date: Sun, 6 Aug 2023 23:31:17 +0800 Subject: [PATCH 1/2] Update config.go --- core/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/config.go b/core/config.go index a40b9f2..78c4b4c 100644 --- a/core/config.go +++ b/core/config.go @@ -216,7 +216,7 @@ func parseParams(subCommand string) { daemonMode := fset.Bool("d", false, "daemonMode") notVerbose := fset.Bool("nv", false, "not log console") newconfig := fset.Bool("newconfig", false, "not load existing config.json") - logLevel := fset.Int("loglevel", 0, "0:info 1:warn 2:error 3:debug") + logLevel := fset.Int("loglevel", 1, "0:debug 1:info 2:warn 3:error") if subCommand == "" { // no subcommand fset.Parse(os.Args[1:]) } else { From fe4022ba6cbb45e334f6c81d26b5ffaa1076b1de Mon Sep 17 00:00:00 2001 From: W192547975 <138874985+W192547975@users.noreply.github.com> Date: Sun, 6 Aug 2023 23:38:14 +0800 Subject: [PATCH 2/2] Update openp2p.go --- core/openp2p.go | 1 - 1 file changed, 1 deletion(-) diff --git a/core/openp2p.go b/core/openp2p.go index e00b805..cdd9023 100644 --- a/core/openp2p.go +++ b/core/openp2p.go @@ -21,7 +21,6 @@ func Run() { fmt.Println(OpenP2PVersion) return case "update": - gLog = NewLogger(baseDir, ProductName, LvDEBUG, 1024*1024, LogFileAndConsole) targetPath := filepath.Join(defaultInstallPath, defaultBinName) d := daemon{} err := d.Control("restart", targetPath, nil)