diff --git a/tools/goctl/rpc/generator/generator.go b/tools/goctl/rpc/generator/generator.go index 3786e3f8..de7c2564 100644 --- a/tools/goctl/rpc/generator/generator.go +++ b/tools/goctl/rpc/generator/generator.go @@ -21,9 +21,11 @@ func NewGenerator(style string, verbose bool) *Generator { if err != nil { log.Fatalln(err) } - log := console.NewColorConsole(verbose) + + colorLogger := console.NewColorConsole(verbose) + return &Generator{ - log: log, + log: colorLogger, cfg: cfg, verbose: verbose, }