DEV: Make parameters optional to all FakeLogger methods

This commit is contained in:
Loïc Guitaut 2024-06-18 18:53:42 +02:00 committed by Loïc Guitaut
parent 80149b3396
commit 3318dad7b4

View File

@ -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