pyrdp icon indicating copy to clipboard operation
pyrdp copied to clipboard

Silent errors when using the defer() function

Open Res260 opened this issue 3 years ago • 1 comments

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.

Res260 avatar Jul 03 '21 14:07 Res260

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?

obilodeau avatar Aug 24 '21 19:08 obilodeau