From b0cb2cf1b90218dcfb97ec38e69554bc58c67332 Mon Sep 17 00:00:00 2001 From: Emma Turetsky Date: Fri, 22 Nov 2024 17:20:05 +0000 Subject: [PATCH] fixed debug out --- local_cache/local_cache.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/local_cache/local_cache.go b/local_cache/local_cache.go index e9ead6c12..89c4b18a1 100644 --- a/local_cache/local_cache.go +++ b/local_cache/local_cache.go @@ -718,7 +718,9 @@ func (lc *LocalCache) Stat(path, token string) (uint64, error) { dUrl.Path = path dUrl.Scheme = "pelican" statInfo, err := client.DoStat(context.Background(), dUrl.String(), client.WithToken(token)) - fmt.Printf("\n\n LOGGING %s \n\n", err.Error()) + if err != nil { + fmt.Printf("\n\n LOGGING %s \n\n", err.Error()) + } return uint64(statInfo.Size), err }