** Description changed: When there is a failure to import a module this failure is logged but also means that everything else will be logged to stdout from that point on. + + The Issue: + When failing to import a module the gi.repository import module adds a handler, that sends output to stdout, to the root logger. This means that _any_ logging after the failed import will be sent to stdout. + + To reproduce/test: - Run the python script found here: http://pastebin.ubuntu.com/7693393/ + Run the python script found here: http://pastebin.ubuntu.com/7693434/ Expected output: Nothing. No logging and no text etc. Actual Output: ERROR:root:Could not find any typelib for rubbish INFO:something-not-root:You shouldn't see this Note that you can see the logged output for "something-not-root" even though it's logging level is set to DEBUG. Ubuntu Version: Description: Ubuntu 14.04 LTS Release: 14.04 Package Version: python3-gi 3.12.0-1
-- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/1333512 Title: Failing to import module adds noise to the logging stream To manage notifications about this bug go to: https://bugs.launchpad.net/pygobject/+bug/1333512/+subscriptions -- desktop-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
