Improve method detection.
Improve method detection.

It's important to avoid anything that might end up calling __getattribute__ as,
in the case of a property, this will call the code in question. Since that code
may well be the reason we're running in the first place, this can lead to an
infinite recursion.

whilp/stacklogger