Skip to content

AddDebugLogProcessorPass is not working correctly in long run runtime and debug environment #48176

@tourze

Description

@tourze

Symfony version(s) affected

6.1.*

Description

I start to develop a new project using symfony and swoole.
Symfony & Swoole is really fast, but when running in APP_ENV=dev environment, I cannnot see any log in profiler bar.
After some reseach, I found that the problem is \Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddDebugLogProcessorPass.

This classs will remove all debug logger when symfony is under CLI. So swoole or any other same framework like workerman/reactphp is not working well.

How to reproduce

  1. Install a new Symfony project
  2. composer install runtime/swoole
  3. Ensure the APP_ENV=dev
  4. Start your application from runtime/swoole
  5. Visit home page, or log something, open profiler bar and check.

Possible Solution

I dont know if we can detect the running environment while kernel compile.
Maybe we can add a new env variable, just like $_ENV['REMOTE_DEBUG_LOGGER'] (default: false) to replace the check in \Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddDebugLogProcessorPass::configureLogger.

Additional Context

No response

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy