disable load & stat logs for goctl (#773)

master
Kevin Wan 3 years ago committed by GitHub
parent 3e8cec5c78
commit 60450bab02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"
@ -531,6 +533,8 @@ var (
func main() {
logx.Disable()
load.Disable()
stat.DisableLog()
app := cli.NewApp()
app.Usage = "a cli tool to generate code"

Loading…
Cancel
Save