Skip to content

Commit

Permalink
blazingmq.util.logging: store switch value in args namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Louis Leroy <[email protected]>
  • Loading branch information
jll63 committed Mar 22, 2024
1 parent 2f61de7 commit d310bea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/python/blazingmq/util/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class Action(argparse.Action):
"""

def __call__(self, parser, namespace, level_spec, option_string=None):
setattr(namespace, self.dest, level_spec)
levels = normalize_log_levels(level_spec)
logging.basicConfig(level=levels[0])
apply_normalized_log_levels(levels)
Expand Down

0 comments on commit d310bea

Please sign in to comment.