mirror of
https://github.com/numtide/treefmt.git
synced 2024-10-05 21:17:37 +03:00
fix: reduce log verbosity
Signed-off-by: Brian McGee <brian@bmcgee.ie>
This commit is contained in:
parent
da82b80f29
commit
cb8565d683
@ -29,8 +29,10 @@ func (f *Format) Configure() {
|
||||
log.SetReportTimestamp(false)
|
||||
|
||||
if f.Verbosity == 0 {
|
||||
log.SetLevel(log.WarnLevel)
|
||||
} else if f.Verbosity == 1 {
|
||||
log.SetLevel(log.InfoLevel)
|
||||
} else if f.Verbosity > 0 {
|
||||
} else if f.Verbosity > 1 {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user