Skip to content

Commit 0a85e77

Browse files
committed
logging
1 parent 142966d commit 0a85e77

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cadence/decision_loop.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,9 +880,11 @@ def run(self):
880880
finally:
881881
# noinspection PyPep8,PyBroadException
882882
try:
883+
logger.info(f"closing wf service")
883884
self.service.close()
884885
except:
885886
logger.warning("service.close() failed", exc_info=1)
887+
logger.info(f"notifying worker thread stopped")
886888
self.worker.notify_thread_stopped()
887889

888890
def poll(self) -> Optional[PollForDecisionTaskResponse]:
@@ -900,6 +902,7 @@ def poll(self) -> Optional[PollForDecisionTaskResponse]:
900902
logger.debug("PollForDecisionTask: %dms", (polling_end - polling_start).total_seconds() * 1000)
901903
except TChannelException as ex:
902904
logger.error("PollForDecisionTask error: %s", ex)
905+
logger.info(f"raising exception PollForDecisionTask {ex}")
903906
raise
904907
if err:
905908
logger.error("PollForDecisionTask failed: %s", err)

0 commit comments

Comments
 (0)