Whenever an AssertionError is raised inside a method, it is handled as an InvalidParamsResponse by the exception handler and the exception does not get logged (here).
I have lots of assertion checks to verify the correct behaviour of the server and it becomes very difficult to debug errors raised by them.