Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/instrumentation/base_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def test_instrument_nonexisting_method_on_module():
def test_instrument_nonexisting_method(caplog):
with caplog.at_level(logging.DEBUG, "elasticapm.instrument"):
_TestInstrumentNonExistingMethod().instrument()
assert_any_record_contains(caplog.records, "has no attribute", "elasticapm.instrument")
assert_any_record_contains(
caplog.records, "Skipping instrumentation of logging.Logger.non_existing_method:", "elasticapm.instrument"
)


def test_instrument_broken_module(caplog):
Expand Down
Loading