Skip to content

Commit

Permalink
Name the function in the started thread
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Oct 26, 2023
1 parent 91e8747 commit 0c4dbc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integration/synapseclient/core/test_caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ def child_thread():
unique_uuid = str(uuid.uuid4())

try:
syn.logger.warning(f"Starting thread uuid: {unique_uuid}")
syn.logger.warning(
f"Starting thread uuid: {unique_uuid}, function: {str(function)}"
)
function(*args, **kwargs, unique_uuid=unique_uuid)
except Exception:
syn.logger.warning(f"Exception in thread uuid: {unique_uuid}")
Expand Down

0 comments on commit 0c4dbc4

Please sign in to comment.