diff --git a/bonfire/bonfire.py b/bonfire/bonfire.py index 5337a162..e82d0799 100755 --- a/bonfire/bonfire.py +++ b/bonfire/bonfire.py @@ -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", @@ -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():