We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f9468b commit 87fad04Copy full SHA for 87fad04
pydra/utils/hash.py
@@ -7,6 +7,7 @@
7
from collections.abc import Mapping
8
from functools import singledispatch
9
from hashlib import blake2b
10
+import logging
11
12
# from pathlib import Path
13
from typing import (
@@ -18,6 +19,8 @@
18
19
)
20
import attrs.exceptions
21
22
+logger = logging.getLogger("pydra")
23
+
24
try:
25
from typing import Protocol
26
except ImportError:
@@ -88,7 +91,8 @@ def hash_single(obj: object, cache: Cache) -> Hash:
88
91
h = blake2b(digest_size=16, person=b"pydra-hash")
89
92
for chunk in bytes_repr(obj, cache):
90
93
h.update(chunk)
- cache[objid] = Hash(h.digest())
94
+ hsh = cache[objid] = Hash(h.digest())
95
+ logger.debug("Hash of %s object is %s", obj, hsh)
96
return cache[objid]
97
98
0 commit comments