Skip to content

Commit

Permalink
Set caplog to INFO in fastapi rid test
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamalama committed Apr 25, 2024
1 parent 09757e3 commit 96eab99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/fastapi/test_fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def test_mozlog_without_correlation_id_middleware(client, caplog):


def test_request_id_passed_to_all_log_messages(caplog):
caplog.set_level(logging.INFO)
caplog.handler.addFilter(RequestIdLogFilter())
caplog.handler.setFormatter(MozlogFormatter())

Expand Down

0 comments on commit 96eab99

Please sign in to comment.