8000 emit() does not call handleError on exception. · Issue #172 · fluent/fluent-logger-python · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
emit() does not call handleError on exception. #172
Open
@klarose

Description

@klarose

The documentation for the handleError function of logging.Handler implies that exceptions should be caught by emit and handled by invoking handleError. This allows the environment to customer how logging errors are handled.

The fluent logger Handler does not do this:

data = self.format(record)

The net result is that exceptions triggered when running the fluent logger (either in format or otherwise) are raised, as opposed to log, which is inconsistent with the rest of the logging Handlers.

The fluent logger should call handleError.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0