Skip to content

Commit 0fa550a

Browse files
authored
Merge pull request #8 from NarrativeScience/QPT-34873/debug-logs
QPT-34873: Adding in a debug log for polling
2 parents 727c9ea + bfb5b44 commit 0fa550a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sfn_workflow_client/execution.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Contains classes related to workflow executions"""
22
import json
3+
import logging
34
import re
45
from typing import Any, Dict, List, Optional, Set
56
import uuid
@@ -285,7 +286,9 @@ def _keep_polling(execution):
285286
on_giveup=_on_giveup,
286287
)
287288
async def _poll(execution: Execution):
288-
return await self.fetch()
289+
response = self.fetch()
290+
logging.debug(f"Poll Response: {response}")
291+
return await response
289292

290293
# NB: only reason for passing the execution is so we have access to its
291294
# attributes if an exception arises in the backoff handler.

0 commit comments

Comments
 (0)