pyrdp
pyrdp copied to clipboard
Silent errors when using the defer() function
The defer() function "swallows" errors of the coroutine called in it, so the error is never displayed to the user. I'm working on something else and I don't know how to easily fix this, so I opened this issue to keep track of the problem.
I got some silent errors today. Not sure if this is related but it caused me to lose a bunch of time tracking it down.
I made an error in a logger statement (not using the correct variable) at the MITM layer. In a handlePDU
function. I wouldn't see my logs but things looked like they worked except I wouldn't get my logs. When I debugged I immediately got a stack trace from within that function that was pretty clear.
Is this the kind of behavior you are talking about?