mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 08:43:25 +08:00
DEV: Make parameters optional to all FakeLogger methods
This commit is contained in:
parent
80149b3396
commit
3318dad7b4
|
@ -14,7 +14,7 @@ class FakeLogger
|
|||
@severities = { 0 => :debugs, 1 => :infos, 2 => :warnings, 3 => :errors, 4 => :fatals }
|
||||
end
|
||||
|
||||
def debug(message)
|
||||
def debug(message = nil)
|
||||
@debugs << message
|
||||
end
|
||||
|
||||
|
@ -30,7 +30,7 @@ class FakeLogger
|
|||
@level <= Logger::INFO
|
||||
end
|
||||
|
||||
def warn(message)
|
||||
def warn(message = nil)
|
||||
@warnings << message
|
||||
end
|
||||
|
||||
|
@ -38,7 +38,7 @@ class FakeLogger
|
|||
@level <= Logger::WARN
|
||||
end
|
||||
|
||||
def error(message)
|
||||
def error(message = nil)
|
||||
@errors << message
|
||||
end
|
||||
|
||||
|
@ -46,7 +46,7 @@ class FakeLogger
|
|||
@level <= Logger::ERROR
|
||||
end
|
||||
|
||||
def fatal(message)
|
||||
def fatal(message = nil)
|
||||
@fatals << message
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user