Puma caught this error: undefined method 'silence' for #<Logger:0x000000012968a5b8> (NoMethodError)
This error is related to Logger class where the silence method was missing from the configuration. This error happens when you enable the logging like the following:
config.logger = Logger.new(STDOUT)
If you comment it out or remove this line, the error will go away.
Another way is to add the following lines in your development.rb
file:
logger = ActiveSupport::Logger.new(STDOUT)
logger.formatter = config.log_formatter
config.logger = ActiveSupport::TaggedLogging.new(logger)
This uses the same ::Logger base class but also brings in the silence method which was failing. You'll notice you have a similar configuration in your production.rb file! (Source: https://github.com/rails/sprockets-rails/issues/376#issuecomment-287560399)