mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 23:06:57 +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
|