Skip to content
This repository was archived by the owner on Feb 11, 2023. It is now read-only.
This repository was archived by the owner on Feb 11, 2023. It is now read-only.

unremoved handlers #2

@jeroenbourgois

Description

@jeroenbourgois

If the _init function is called more than once, previous handlers are not cleaned. I understand that the _init should not be called twice, but apparently somewhere during the autoloading process by Fuel, it does happen.

I fixed this by adding the following lines to the _init() function:

if(!is_null(static::$monolog)) {
  return;
}

I understand this is not ideal, but without this fix, my Sentry handler was not called anymore...

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