Discourse logging options

Are there somewhere configuration options for logging?

I want to prevent discourse to log messages which are currently written by users. Is this somehow possible?

1 Like

Hi there, can you try to explain again? It’s not clear what you’re asking for here, sorry!


Well, in discourse/rails/production.log every message is logged, like

Started POST "/posts" for at 2020-11-12 13:46:27 +0000
Processing by PostsController#create as */*
  Parameters: {"raw"=>"This is a message which shouldn't be logged in my eyes"

And what are you wanting to change?

I don’t want to see these messages in the log, if possible.

To filter a specific parameter in Rails, you can do this (old method before “filter_attributes”, see below) via a plugin:

Rails.application.config.filter_parameters += [

You can also use:


See also filter_attributes and other good info on this here:

Hope this helps @sbernhard

See also: