Skip to content

[Profiler] could not access logs in tests #33384

Closed
@massimilianobraglia

Description

@massimilianobraglia

Symfony version(s) affected: 4.3.4 (upgrading from 4.2.5)

Description
#30339
This PR disabled the debug logger in cli. During the execution of my functional tests with PHPUnit I cannot access the logs contained in the profiler's logger collector

        $collector = $profile->getCollector('logger');
        $logs = $collector->getLogs()->getValue(true);

these lines gathered also the logs made by a GuzzleHttp client instance (I can dump the log messages).

I need to check those logs in order to be sure that the GuzzleClient makes the right requests needed by my application.

How can I access those logs? Is there another way to do that?

Thank you in advance! 😄

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions