diff options
| author | Stephen Sorriaux <stephen.sorriaux@gmail.com> | 2023-04-10 17:13:59 -0400 |
|---|---|---|
| committer | Stephen Sorriaux <stephen.sorriaux@gmail.com> | 2023-04-24 14:04:44 -0400 |
| commit | 2c36d699fbf0569f490d5bfa66fa85fbdc68dea3 (patch) | |
| tree | 931d2caa9ec9f59ea167f78530fc484fe103e74b /pyproject.toml | |
| parent | d218dc970575f5d6042c14060d36e118a8c92e57 (diff) | |
| download | kazoo-master.tar.gz | |
Activate `pytest`'s `logcli` setting to better read the client lifecycle during testing.
Add `log()` function to KazooTestHarness class so that it is possible to log like crazy when something is not working
Display the ZK client port in logs when starting a ZK server (useful for test "debug")
Be able to get more than the last 100 lines of ZK logs (can be useful, believe me)
Diffstat (limited to 'pyproject.toml')
| -rw-r--r-- | pyproject.toml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml index 39d7d62..f474736 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,10 @@ extend-exclude = ''' [tool.pytest.ini_options] addopts = "-ra -v" +log_cli = true +log_cli_date_format = "%Y-%m-%d %H:%M:%S" +log_cli_format = "%(asctime)s %(levelname)s %(message)s" +log_cli_level = "INFO" [tool.mypy] |
