Skip to content

Commit

Permalink
Fix recipes.rst typo (#1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
quadDamaged authored Dec 7, 2024
1 parent ae3bfd1 commit 0059b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/resources/recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ The logger is pre-configured for convenience with a default handler which writes
Changing the level of an existing handler
-----------------------------------------

Once a handler has been added, it is actually not possible to update it. This is a deliberate choice in order to keep the Loguru's API minimal. Several solutions are possible, tough, if you need to change the configured ``level`` of a handler. Chose the one that best fits your use case.
Once a handler has been added, it is actually not possible to update it. This is a deliberate choice in order to keep the Loguru's API minimal. Several solutions are possible, though, if you need to change the configured ``level`` of a handler. Chose the one that best fits your use case.

The most straightforward workaround is to |remove| your handler and then re-|add| it with the updated ``level`` parameter. To do so, you have to keep a reference to the identifier number returned while adding a handler::

Expand Down

0 comments on commit 0059b51

Please sign in to comment.