Skip to content

Ambiguity in documentation of logger.handlers.MemoryHandler method flush() #107028

@JochemBoersma

Description

@JochemBoersma

Documentation

Behavior of the MemoryHandler is slightly different as what the documentation is. Or, it has at least some ambiguity:
The function flush() does not clear the buffer when flushed without a target, but the docstring states: The record buffer is also cleared by this operation.

Since keeping the buffer full when flushing when no target is given (quite a corner case, but anyway) makes sense. Therefore suggested to adapt the documentation.

Linked PRs

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dir

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions