fix log name conflict

master
tanglihao 2 years ago committed by Kevin Wan
parent 4988f2a4da
commit cb39b5836f

@ -21,9 +21,11 @@ func NewGenerator(style string, verbose bool) *Generator {
if err != nil { if err != nil {
log.Fatalln(err) log.Fatalln(err)
} }
log := console.NewColorConsole(verbose)
colorLogger := console.NewColorConsole(verbose)
return &Generator{ return &Generator{
log: log, log: colorLogger,
cfg: cfg, cfg: cfg,
verbose: verbose, verbose: verbose,
} }

Loading…
Cancel
Save