mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: logspam due to 404s on CSS files
We had a missing formats: string on our render partial that caused logs to spam when CSS files got 404s. Due to magic discourse_public_exceptions.rb was actually returning the correct 404 cause it switched format when rendering the error.
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
class FakeLogger
|
||||
attr_reader :warnings, :errors, :infos
|
||||
attr_reader :warnings, :errors, :infos, :fatals
|
||||
|
||||
def initialize
|
||||
@warnings = []
|
||||
@errors = []
|
||||
@infos = []
|
||||
@fatals = []
|
||||
end
|
||||
|
||||
def info(message = nil)
|
||||
@@ -18,4 +19,11 @@ class FakeLogger
|
||||
def error(message)
|
||||
@errors << message
|
||||
end
|
||||
|
||||
def fatal(message)
|
||||
@fatals << message
|
||||
end
|
||||
|
||||
def formatter
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user