You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2022/12/03 06:38:38 UTC
[buildstream] 01/01: DEBUG
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch tristan/debug-cache-keys
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 9850b0b10463b66825cb364f59c2af6ca44e4d49
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Sat Dec 3 15:38:15 2022 +0900
DEBUG
---
src/buildstream/_cachekey.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/buildstream/_cachekey.py b/src/buildstream/_cachekey.py
index 2a3b7f2ef..4f21bbbba 100644
--- a/src/buildstream/_cachekey.py
+++ b/src/buildstream/_cachekey.py
@@ -60,4 +60,8 @@ def is_key(key):
#
def generate_key(value):
ustring = ujson.dumps(value, sort_keys=True, escape_forward_slashes=False).encode("utf-8")
+
+ import sys
+ sys.stderr.write("\n\nJSON STRING: {}\n\n".format(ustring))
+
return hashlib.sha256(ustring).hexdigest()