Skip to content

Commit 1911241

Browse files
committed
removed logs
1 parent b088d33 commit 1911241

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

infisical_sdk/util/secrets_cache.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ def compute_cache_key(self, operation_name: str, **kwargs) -> str:
2929
sorted_kwargs = sorted(kwargs.items())
3030
json_str = json.dumps(sorted_kwargs)
3131

32-
print(f"Cache key: {operation_name}:{json_str}")
33-
3432
return sha256(f"{operation_name}:{json_str}".encode()).hexdigest()
3533

3634
def get(self, cache_key: str) -> Any:
@@ -41,14 +39,11 @@ def get(self, cache_key: str) -> Any:
4139
if cache_key in self.cache:
4240
serialized_value, timestamp = self.cache[cache_key]
4341
if time.time() - timestamp <= self.ttl:
44-
print(f"Cache hit: {cache_key}")
4542
return pickle.loads(serialized_value)
4643
else:
47-
print(f"Cache miss (expired): {cache_key}")
4844
del self.cache[cache_key]
4945
return None
5046
else:
51-
print(f"Cache miss (not in cache): {cache_key}")
5247
return None
5348

5449

0 commit comments

Comments
 (0)