mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 09:43:53 +08:00
17 lines
217 B
Ruby
17 lines
217 B
Ruby
class FakeLogger
|
|
attr_reader :warnings, :errors
|
|
|
|
def initialize
|
|
@warnings = []
|
|
@errors = []
|
|
end
|
|
|
|
def warn(message)
|
|
@warnings << message
|
|
end
|
|
|
|
def error(message)
|
|
@errors << message
|
|
end
|
|
end
|