Skip to content

Commit 8bcbdd5

Browse files
authored
Update main.py
1 parent eb143b5 commit 8bcbdd5

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

main.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,10 @@ def fullHouse(self):
153153
return False
154154

155155
@activity.defn
156-
async def poker_game() -> str:
157-
activity.logger.error("Running activity")
156+
async def poker_game() -> None:
157+
# activity.logger.critical("Running activity")
158158
player = Player()
159159

160-
# Initial Amount
161160
points = 100
162161

163162
end = False
@@ -278,15 +277,15 @@ async def poker_game() -> str:
278277
@workflow.defn
279278
class PokerWorkflow:
280279
@workflow.run
281-
async def run(self) -> str:
282-
workflow.logger.error("Running workflow")
280+
async def run(self) -> None:
281+
# workflow.logger.critical("Running workflow")
283282
return await workflow.execute_activity(
284283
poker_game,
285284
start_to_close_timeout=timedelta(seconds=10),
286285
)
287286

288287
async def main():
289-
logging.basicConfig(level=logging.DEBUG)
288+
logging.basicConfig(level=logging.CRITICAL)
290289

291290
client = await Client.connect("localhost:7233")
292291

0 commit comments

Comments
 (0)