There exists the macro @test_warn which removes the need to pass "warn" when checking for warning level log messages. It would be nice if there existed a similar macro for checking info and error level logs. I could see @test_error being confusing as it sounds like it's checking for an error. If these new macros are worth adding maybe they could be named @test_warnlog, @test_infolog and @test_errorlog.
There exists the macro
@test_warn
which removes the need to pass"warn"
when checking for warning level log messages. It would be nice if there existed a similar macro for checkinginfo
anderror
level logs. I could see@test_error
being confusing as it sounds like it's checking for an error. If these new macros are worth adding maybe they could be named@test_warnlog
,@test_infolog
and@test_errorlog
.