Skip to content

Commit

Permalink
updated loguru app
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinecgilbert committed May 3, 2024
1 parent 37ef8f7 commit 27bf6d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/handlers/opentelemetry_loguru/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def roll_dice():
player = request.args.get('player', default=None, type=str)
result = str(roll())
if player:
loguru_logger.warning("Player is rolling the dice: num")
loguru_logger.warning(f"Player {player} is rolling the dice: {result}")
else:
loguru_logger.warning("Anonymous player is rolling the dice: num")
loguru_logger.warning(f"Anonymous player is rolling the dice: {result}")
return result


Expand Down

0 comments on commit 27bf6d9

Please sign in to comment.