change: init logger with INFO level

This commit is contained in:
debugtalk
2022-04-22 21:35:38 +08:00
parent 9afe10f816
commit aab9a7de3f
4 changed files with 22 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ from loguru import logger
from httprunner import __description__, __version__
from httprunner.compat import ensure_cli_args
from httprunner.make import init_make_parser, main_make
from httprunner.utils import ga_client, init_sentry_sdk
from httprunner.utils import ga_client, init_logger, init_sentry_sdk
init_sentry_sdk()
@@ -57,6 +57,8 @@ def main_run(extra_args) -> enum.IntEnum:
def main():
""" API test: parse command line options and run commands.
"""
init_logger()
parser = argparse.ArgumentParser(description=__description__)
parser.add_argument(
"-V", "--version", dest="version", action="store_true", help="show version"