port ff4dc45 "fix(logging): allow sending an exception to the logger"
fix for deprecated expect { }.not_to raise_error(SpecificErrorClass)