Closed n-rodriguez closed 8 months ago
@n-rodriguez I'm not able to duplicate. Can you give me more info about your setup and proivde the relevant info from the issue template? Here's a newly generated app:
[dotenv] Set FOO
[dotenv] Loaded .env
Started GET "/" for ::1 at 2024-02-29 17:48:44 -0500
ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
Processing by Rails::WelcomeController#index as HTML
Rendering /Users/bkeepers/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.1.3.2/lib/rails/templates/rails/welcome/index.html.erb
Rendered /Users/bkeepers/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.1.3.2/lib/rails/templates/rails/welcome/index.html.erb (Duration: 0.5ms | Allocations: 374)
Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.0ms | Allocations: 4219)
And versions:
❯ dotenv --version
dotenv 3.1.0
❯ rails --version
Rails 7.1.3.2
❯ ruby --version
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
Hi there!
There is a bug with the latest version of
dotenv
: all logs are tagged withdotenv
See:
I think this is due to https://github.com/bkeepers/dotenv/blob/588f7a489ebaff737ed31847e39abad9b336f649/lib/dotenv/rails.rb#L96C1-L100C8 (
.tagged("dotenv")
)To make the tag not permanent you must use the block form (https://api.rubyonrails.org/classes/ActiveSupport/TaggedLogging.html)
Thank you!