Skip to content

Logs are outputed into the Rails console #38284

@martinos

Description

@martinos

Steps to reproduce

In the console

Rails.logger.info("test")

Expected behavior

I think that the Rails console should not output logs to the console (as it was prior to Rails 5), or at least give a way to disable this behavior.

Actual behavior

test will be outputted the console.

This causes me a lot of headache because when I call some methods on objects that are logging, my console gets flooded of logs.

System configuration

Rails 5.2.2 and Rails 6.0.1

Ruby version: 2.6.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions