From e220743c0671e540c634973ea804ad2508442744 Mon Sep 17 00:00:00 2001 From: Travis Person Date: Sat, 15 Feb 2020 06:22:36 +0000 Subject: [PATCH] Add additional debug logging around finding best storage path --- fs/fs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/fs.go b/fs/fs.go index bdebf08..a37f047 100644 --- a/fs/fs.go +++ b/fs/fs.go @@ -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 } @@ -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 }