Skip to content

Commit

Permalink
disable load & stat logs for goctl (zeromicro#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Jun 21, 2021
1 parent 3e8cec5 commit 60450ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/goctl/goctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import (
"os"
"runtime"

"github.com/tal-tech/go-zero/core/load"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/core/stat"
"github.com/tal-tech/go-zero/tools/goctl/api/apigen"
"github.com/tal-tech/go-zero/tools/goctl/api/dartgen"
"github.com/tal-tech/go-zero/tools/goctl/api/docgen"
Expand Down Expand Up @@ -531,6 +533,8 @@ var (

func main() {
logx.Disable()
load.Disable()
stat.DisableLog()

app := cli.NewApp()
app.Usage = "a cli tool to generate code"
Expand Down

0 comments on commit 60450ba

Please sign in to comment.