DEV: Fix FakeLogger compat (#18562)

TaggedLogger requires these methods (see plugin backend failures in #18534)
This commit is contained in:
Jarek Radosz 2022-10-12 16:06:00 +02:00 committed by GitHub
parent 4170b9bb58
commit a4437ab30b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

@ -16,22 +16,42 @@ class FakeLogger
@debug << message
end
def debug?
@level <= Logger::DEBUG
end
def info(message = nil)
@infos << message
end
def info?
@level <= Logger::INFO
end
def warn(message)
@warnings << message
end
def warn?
@level <= Logger::WARN
end
def error(message)
@errors << message
end
def error?
@level <= Logger::ERROR
end
def fatal(message)
@fatals << message
end
def fatal?
@level <= Logger::FATAL
end
def formatter
end
end