Skip to content

Commit

Permalink
Move check_pypi after logging config
Browse files Browse the repository at this point in the history
  • Loading branch information
bsquizz committed Oct 27, 2021
1 parent 482b453 commit aa6f3e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bonfire/bonfire.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ def _error(msg):
@click.group(context_settings=dict(help_option_names=["-h", "--help"]))
@click.option("--debug", "-d", help="Enable debug logging", is_flag=True, default=False)
def main(debug):
check_pypi()

logging.getLogger("sh").setLevel(logging.CRITICAL) # silence the 'sh' library logger
logging.basicConfig(
format="%(asctime)s [%(levelname)8s] [%(threadName)20s] %(message)s",
Expand All @@ -84,6 +82,8 @@ def custom_formatwarning(msg, *args, **kwargs):
if conf.ENV_FILE:
log.debug("using env file: %s", conf.ENV_FILE)

check_pypi()


@main.group()
def namespace():
Expand Down

0 comments on commit aa6f3e7

Please sign in to comment.