mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 14:03:39 +08:00
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:
parent
59491f3047
commit
b418857830
|
@ -205,3 +205,6 @@ force_anonymous_min_per_10_seconds = 3
|
|||
# flood the queue
|
||||
max_old_rebakes_per_15_minutes = 300
|
||||
|
||||
# maximum number of log messages in /logs
|
||||
max_logster_logs = 1000
|
||||
|
||||
|
|
|
@ -72,9 +72,7 @@ if Rails.env.production?
|
|||
Logster.config.env_expandable_keys.push(:hostname, :problem_db)
|
||||
end
|
||||
|
||||
if GlobalSetting.respond_to?(:max_logster_logs)
|
||||
Logster.store.max_backlog = GlobalSetting.max_logster_logs
|
||||
end
|
||||
|
||||
# middleware that logs errors sits before multisite
|
||||
# we need to establish a connection so redis connection is good
|
||||
|
|
Loading…
Reference in New Issue
Block a user