abhisheknayak_1111's avatar

Symfony 3.4: Both dev-*.log and prod-*.log are generated in production environment

Hi all, I'm using Symfony 3.4 in a production environment, but I've noticed that both prod-YYYY-MM-DD.log and dev-YYYY-MM-DD.log log files are being generated. Here’s my config_prod.yml Monolog configuration: monolog: handlers: main: type: fingers_crossed action_level: error handler: nested

    nested:
        type: rotating_file
        path: "%kernel.logs_dir%/%kernel.environment%.log"
        level: info
        max_files: 10

    console:
        type: console

My expectation is that only prod-.log should be created. But somehow dev-.log is also being written in production. Questions: What might be causing the dev-*.log file to be created in production? Could this be related to a misconfigured script or cron running with the wrong environment? How can I prevent dev.log from being created in production? Any insights would be appreciated. Thanks!

0 likes
0 replies

Please or to participate in this conversation.