Skip to content

If the number of bytes written equal to zero error_get_last() returns not related error #66

Description

@maximTarleckiy

Looking to error handling in case when \Fluent\Logger\FluentLogger::write() returns 0,
this call:

$errors = error_get_last();

gets last php error and it can not be related to write() method only.
Therefore I suggest before using error_get_last() inside logger clear before that all previous error not related to logger.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions