Skip to content

Commit d1b4ce2

Browse files
committed
Added log message for get action
1 parent cb089b6 commit d1b4ce2

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

docker/configs/pysica.zip

93 Bytes
Binary file not shown.

pysica.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@ def get_elem(self, element_id=None, data_type=None, user_id=None, reset_timeout=
7979
cache = self.get_cache(user_id)
8080
result = []
8181
if element_id is not None and element_id in cache:
82+
self.logger.info("Getting element from cache with ID " + str(self.id))
8283
elem = cache.get(element_id)
8384
if reset_timeout:
8485
self.reset_timeout(element_id, timeout=timeout, user_id=user_id)
8586
result.append(marshal.loads(elem.get("data")) if elem.get("compressed") else elem.get("data"))
8687
elif data_type is not None:
88+
self.logger.info("Getting all elements from cache for type " + data_type)
8789
for element_id in cache:
8890
elem = cache.get(element_id)
8991
if elem.get("data_type") == data_type:

0 commit comments

Comments
 (0)