Skip to content

Commit

Permalink
Set level of logger dataplane to error (#1838)
Browse files Browse the repository at this point in the history
When we run the fdb/test_fdb.py script, the `dataplane` logger generats
**too** much log messages at warning level. This change sets log level
of the `dataplne` logger to error to filter out the warning messages.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
  • Loading branch information
wangxin authored Jul 1, 2020
1 parent e30b173 commit 7bfdd0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def config_logging(request):
# Filter out unnecessary logs generated by calling the ptfadapter plugin
dataplane_logger = logging.getLogger("dataplane")
if dataplane_logger:
dataplane_logger.setLevel(logging.WARNING)
dataplane_logger.setLevel(logging.ERROR)


@pytest.fixture(scope="session")
Expand Down

0 comments on commit 7bfdd0e

Please sign in to comment.