fix log name conflict

This commit is contained in:
tanglihao 2023-03-03 12:26:03 +08:00 committed by Kevin Wan
parent 4988f2a4da
commit cb39b5836f

View File

@ -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,
}