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 {
log.Fatalln(err)
}
log := console.NewColorConsole(verbose)
colorLogger := console.NewColorConsole(verbose)
return &Generator{
log: log,
log: colorLogger,
cfg: cfg,
verbose: verbose,
}

Loading…
Cancel
Save