mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 06:43:45 +08:00
e9a971a2b6
do not register new MIME type, parse raw body instead
22 lines
296 B
Ruby
22 lines
296 B
Ruby
class FakeLogger
|
|
attr_reader :warnings, :errors, :infos
|
|
|
|
def initialize
|
|
@warnings = []
|
|
@errors = []
|
|
@infos = []
|
|
end
|
|
|
|
def info(message = nil)
|
|
@infos << message
|
|
end
|
|
|
|
def warn(message)
|
|
@warnings << message
|
|
end
|
|
|
|
def error(message)
|
|
@errors << message
|
|
end
|
|
end
|