Skip to content

AsyncGelfHttpAppender error in OnClose() method. #71

@FedericoBusso

Description

@FedericoBusso

When setting an invalid URL on the appender, the application crashes when trying to log with the following error:

https://i.imgur.com/b50Zegs.png

with the following appender config:

https://i.imgur.com/ApQL4Xu.png

Looking through the code, the OnClose of the appender has the _sender property set to null since the

base.ActivateOptions();

fails.

could probably fix this by just putting the _sender initialization before callind the base.ActivateOptions in the AsyncGelfHttpAppender's own ActivateOptions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions