diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 20c53ca5..f01a53b0 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 3.1.0 (2020-06-18) +## 3.1.0 (2020-06-19) **Added** diff --git a/httprunner/ext/locust/__init__.py b/httprunner/ext/locust/__init__.py index 58700dd2..fe528e68 100644 --- a/httprunner/ext/locust/__init__.py +++ b/httprunner/ext/locust/__init__.py @@ -21,6 +21,8 @@ $ pip install locust sys.exit(1) +from loguru import logger + """ converted pytest files from YAML/JSON testcases """ pytest_files: List = [] @@ -69,9 +71,14 @@ def main_locusts(): """ from httprunner.utils import init_sentry_sdk from sentry_sdk import capture_message + init_sentry_sdk() capture_message("start to run locusts") + # avoid print too much log details in console + logger.remove() + logger.add(sys.stderr, level="WARNING") + sys.argv[0] = "locust" if len(sys.argv) == 1: sys.argv.extend(["-h"])