Skip to content

Commit 5b35518

Browse files
Zac-HDMetRonnie
andauthored
Apply suggestions from code review
Co-authored-by: Ronnie Dutta <[email protected]>
1 parent bb6155a commit 5b35518

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/_pytest/logging.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -447,12 +447,9 @@ def clear(self) -> None:
447447
self.handler.reset()
448448

449449
def set_level(self, level: Union[int, str], logger: Optional[str] = None) -> None:
450-
"""Sets the threshold for this logger to level.
450+
"""Set the threshold level of a logger for the duration of a test.
451451
452-
Logging messages which are less severe than level will be ignored; logging messages
453-
which have severity level or higher will be emitted by whichever handler or handlers
454-
service this logger, unless a handler’s level has been set to a higher severity level
455-
than `level`.
452+
Logging messages which are less severe than this level will not be captured.
456453
457454
.. versionchanged:: 3.4
458455
The levels of the loggers changed by this function will be

0 commit comments

Comments
 (0)