DEV: document max_logster_logs in discourse_defaults.conf

This cleans up logster configuration a bit cause we no longer have to
check if we respond_to anything and keeps the logster limit properly
documented

Followup on da578e92
This commit is contained in:
Sam Saffron 2019-03-22 14:11:21 +11:00
parent 59491f3047
commit b418857830
2 changed files with 4 additions and 3 deletions

View File

@ -205,3 +205,6 @@ force_anonymous_min_per_10_seconds = 3
# flood the queue # flood the queue
max_old_rebakes_per_15_minutes = 300 max_old_rebakes_per_15_minutes = 300
# maximum number of log messages in /logs
max_logster_logs = 1000

View File

@ -72,9 +72,7 @@ if Rails.env.production?
Logster.config.env_expandable_keys.push(:hostname, :problem_db) Logster.config.env_expandable_keys.push(:hostname, :problem_db)
end end
if GlobalSetting.respond_to?(:max_logster_logs) Logster.store.max_backlog = GlobalSetting.max_logster_logs
Logster.store.max_backlog = GlobalSetting.max_logster_logs
end
# middleware that logs errors sits before multisite # middleware that logs errors sits before multisite
# we need to establish a connection so redis connection is good # we need to establish a connection so redis connection is good