Feature request: logging
An environment variable that would allow switching on logging, potentially with a level and / or a subsystem for which to enable it could prove useful in some cases.
For example, PYGOBJECT_DEBUG=parameter-marshalling:debug
would cause pygobject to print the values it receives, their addresses, what it passes / gets to / from libffi etc..
This is intentionally a bit vague, more thought would need to be put into it, but I know logging would have made some debugging sessions faster for me :)