NoMethodError (undefined method `silence' for #<GELF::Logger:0x000055c41ec5abd8>):

76 Views Asked by At

versions :- rails 6.0.0 ruby 2.6.6

this is my code in application.rb

config.lograge.enabled = true
config.lograge.formatter = Lograge::Formatters::Graylog2.new

config.logger = GELF::Logger.new(
  "127.0.0.1",
  "12201",
  'WAN',
  facility: "MY APP",
  host: "LOCAL",
 )

i ran my rails application in production mode and I'm getting this error

NoMethodError (undefined method `silence' for #<GELF::Logger:0x000055c41ec5abd8>)
1

There are 1 best solutions below

1
bastas On

This issue was discussed on github. Check out:

https://github.com/rails/activerecord-session_store/issues/176

Probably you updated some gems and ran into this problem.