Skip to content

Commit

Permalink
Merge pull request #641 from lsst/tickets/DM-33394
Browse files Browse the repository at this point in the history
DM-33394: Add debug log message if the cache transfer failed
  • Loading branch information
timj committed Feb 9, 2022
2 parents 0e05172 + b985217 commit c94525a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/daf/butler/core/datastoreCacheManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,8 @@ def find_in_cache(self, ref: DatasetRef, extension: str) -> Iterator[Optional[Re
try:
if temp_location is not None:
temp_location.transfer_from(cached_location, transfer="hardlink")
except Exception:
except Exception as e:
log.debug("Detected error creating hardlink for dataset %s: %s", ref, e)
# Any failure will be treated as if the file was not
# in the cache. Yielding the original cache location
# is too dangerous.
Expand Down

0 comments on commit c94525a

Please sign in to comment.