Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Warnings show stacktrace on verbose (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin authored Jun 4, 2018
1 parent dbde8bc commit b9a863b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aztk_cli/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
def _show_warn(message, *_args):
log.warning(message)

warnings.showwarning = _show_warn

def main():
parser = argparse.ArgumentParser(prog=constants.CLI_EXE)
Expand Down Expand Up @@ -62,6 +61,7 @@ def parse_common_args(args: NamedTuple):
logger.setup_logging(True)
log.debug("Verbose logging enabled")
else:
warnings.showwarning = _show_warn
logger.setup_logging(False)


Expand Down

0 comments on commit b9a863b

Please sign in to comment.