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 {
|
if verbose {
|
||||||
log.Info("Debug logs enabled")
|
log.Info("Debug logs enabled")
|
||||||
log.SetLevel(log.DebugLevel)
|
log.SetLevel(log.DebugLevel)
|
||||||
// log.SetFormatter(&log.TextFormatter{})
|
log.SetFormatter(&log.TextFormatter{})
|
||||||
} else {
|
} else {
|
||||||
// plainFormatter := new(PlainFormatter)
|
plainFormatter := new(PlainFormatter)
|
||||||
// log.SetFormatter(plainFormatter)
|
log.SetFormatter(plainFormatter)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user