mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 09:00:20 +08:00
fix log name conflict
This commit is contained in:
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…
Reference in New Issue
Block a user