Skip to content

Commit 27bf6d9

Browse files
updated loguru app
1 parent 37ef8f7 commit 27bf6d9

File tree

1 file changed

+2
-2
lines changed
  • examples/handlers/opentelemetry_loguru

1 file changed

+2
-2
lines changed

examples/handlers/opentelemetry_loguru/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ def roll_dice():
2727
player = request.args.get('player', default=None, type=str)
2828
result = str(roll())
2929
if player:
30-
loguru_logger.warning("Player is rolling the dice: num")
30+
loguru_logger.warning(f"Player {player} is rolling the dice: {result}")
3131
else:
32-
loguru_logger.warning("Anonymous player is rolling the dice: num")
32+
loguru_logger.warning(f"Anonymous player is rolling the dice: {result}")
3333
return result
3434

3535

0 commit comments

Comments
 (0)