Skip to content

Commit

Permalink
Merge pull request #43 from W192547975/fixbug
Browse files Browse the repository at this point in the history
Bug fixing from 2023/8/1
  • Loading branch information
TenderIronh authored Aug 8, 2023
2 parents 0af65b7 + fe4022b commit b2a7619
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion core/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion core/openp2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b2a7619

Please sign in to comment.