- Always return
nil
fromConsole::Filter
logging methods.
- Fix logging
exception:
keyword argument when the value was not an exception.
- Don't make
Kernel#warn
redirection toConsole.warn
the default behavior, you mustrequire 'console/warn'
to enable it. - Remove deprecated
Console::Logger#failure
.
Console.call
and all wrapper methods will now consistently handle exceptions that are the last positional argument or keyword argument. This means that the following code will work as expected:
begin
rescue => error
# Last positional argument:
Console.warn(self, "There may be an issue", error)
# Keyword argument (preferable):
Console.error(self, "There is an issue", exception: error)
end
- Add support for
Kernel#warn
redirection toConsole.warn
.