خيارات تسجيل Discourse

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?

إعجابَين (2)

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

إعجابَين (2)

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

Started POST "/posts" for 1.15.7.3 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.

إعجاب واحد (1)

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 += [
  :raw,
  :signature,
  :return_url,
  :api_url,
  :access_token_url,
  :code
]

You can also use:

 filter_attributes

See also filter_attributes and other good info on this here:

Hope this helps @sbernhard

See also: