Added back in formatters
This commit is contained in:
parent
75c9d3f7af
commit
05acb8bc8b
@ -19,9 +19,9 @@ func toggleDebug(cmd *cobra.Command, args []string) {
|
||||
if verbose {
|
||||
log.Info("Debug logs enabled")
|
||||
log.SetLevel(log.DebugLevel)
|
||||
// log.SetFormatter(&log.TextFormatter{})
|
||||
log.SetFormatter(&log.TextFormatter{})
|
||||
} else {
|
||||
// plainFormatter := new(PlainFormatter)
|
||||
// log.SetFormatter(plainFormatter)
|
||||
plainFormatter := new(PlainFormatter)
|
||||
log.SetFormatter(plainFormatter)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user