Skip to content

Commit

Permalink
fix(logging): make the verbosity option more eager
Browse files Browse the repository at this point in the history
Ensure the verbosity option is handled before the configs are loaded so
the logger level is set to the user's value in the config code.
  • Loading branch information
Yannick-Dayer committed Sep 20, 2024
1 parent 944ea45 commit 13892b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/clapper/click.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def callback(ctx, param, value):
f"option as often as desired (e.g. '-vvv' for debug)."
),
callback=callback,
is_eager=True, # Ensure the logger is set for ResourceOptions loading
**kwargs,
)(f)

Expand Down

0 comments on commit 13892b0

Please sign in to comment.