mirror of
https://github.com/numtide/treefmt.git
synced 2024-10-03 20:18:11 +03:00
feat: demote some cache related logging to debug level
Signed-off-by: Brian McGee <brian@bmcgee.ie>
This commit is contained in:
parent
385fbc36cf
commit
ff3bfaa0b6
4
cache/cache.go
vendored
4
cache/cache.go
vendored
@ -191,7 +191,7 @@ func ChangeSet(ctx context.Context, walker walk.Walker, filesCh chan<- *walk.Fil
|
|||||||
start := time.Now()
|
start := time.Now()
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
logger.Infof("finished generating change set in %v", time.Since(start))
|
logger.Debugf("finished generating change set in %v", time.Since(start))
|
||||||
}()
|
}()
|
||||||
|
|
||||||
var tx *bolt.Tx
|
var tx *bolt.Tx
|
||||||
@ -272,7 +272,7 @@ func ChangeSet(ctx context.Context, walker walk.Walker, filesCh chan<- *walk.Fil
|
|||||||
func Update(files []*walk.File) error {
|
func Update(files []*walk.File) error {
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
defer func() {
|
defer func() {
|
||||||
logger.Infof("finished processing %v paths in %v", len(files), time.Since(start))
|
logger.Debugf("finished processing %v paths in %v", len(files), time.Since(start))
|
||||||
}()
|
}()
|
||||||
|
|
||||||
if len(files) == 0 {
|
if len(files) == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user