mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 00:30:09 +08:00
FIX: Don't log request when Discourse is in readonly due to PG.
This commit is contained in:
parent
d7f11be575
commit
e2a20d90fe
@ -72,7 +72,9 @@ class Middleware::RequestTracker
|
||||
|
||||
def self.log_request_on_site(data, host)
|
||||
RailsMultisite::ConnectionManagement.with_hostname(host) do
|
||||
log_request(data)
|
||||
unless Discourse.readonly_mode?([Discourse::PG_READONLY_MODE_KEY])
|
||||
log_request(data)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user