Skip to content

Commit c32c6bd

Browse files
committed
session metadata passing optimization, adding a debug log
1 parent a5ea5f2 commit c32c6bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FunctionWorker/python/SessionUtils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ def send_to_running_function_in_session(self, session_function_id, message, send
440440
function_metadatastr = session_metadata
441441
if function_metadatastr == None or function_metadatastr == '' or type(function_metadatastr) != type(''):
442442
function_metadatastr = self._global_data_layer_client.getMapEntry(self._map_name_session_functions, session_function_id)
443-
self._logger.debug(f"[SessionUtils] Sending message to running function: {str(session_function_id)}, now: {str(send_now)}, function_metadata: {str(function_metadatastr)}")
443+
self._logger.debug(f"[SessionUtils] Fetched session metadata from datalayer. Session function id: {str(session_function_id)}, now: {str(send_now)}, user provided session_metadata: {str(session_metadata)}, fetched function_metadata: {str(function_metadatastr)}")
444+
#self._logger.debug(f"[SessionUtils] Sending message to running function: {str(session_function_id)}, now: {str(send_now)}, function_metadata: {str(function_metadatastr)}")
444445
try:
445446
#self._logger.debug("[SessionUtils] function metadata: " + function_metadatastr)
446447
function_metadata = json.loads(function_metadatastr)

0 commit comments

Comments
 (0)