Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Add additional debug logging around finding best storage path
Browse files Browse the repository at this point in the history
  • Loading branch information
travisperson committed Feb 15, 2020
1 parent 6b57024 commit e220743
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ func (f *FS) findBestPath(size uint64, cache bool, strict bool) (StoragePath, er
bestc := true

for path, info := range f.paths {
log.Debugw("Checking storage path", "path", string(path), "cache", info.cache, "weight", info.weight)
if info.cache != cache && (bestc != info.cache || strict) {
continue
}
Expand All @@ -194,6 +195,7 @@ func (f *FS) findBestPath(size uint64, cache bool, strict bool) (StoragePath, er
}

if uint64(avail) < size {
log.Debugw("Not enough space available", "path", string(path), "available", avail, "required", size)
continue
}

Expand Down

0 comments on commit e220743

Please sign in to comment.