Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the Messenger Handler, improve the "NullLogger" situation #17

Open
damienalexandre opened this issue Jan 16, 2020 · 1 comment
Open
Labels
enhancement New feature or request Hacktoberfest

Comments

@damienalexandre
Copy link
Member

We remove the Elastica Logger in the Message Handler for memory / perf considerations:

    public function __construct(Client $client)
    {
        $this->client = $client;

        // Disable the logs for memory concerns
        $this->client->setLogger(new NullLogger());
    }

But that's not ideal as I removed forever, also for calls outside the Handler.

We have to find a better way, or a better logger than Elastica built in.

@lyrixx
Copy link
Member

lyrixx commented Jan 16, 2020

Some hint for the resolution:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants