** 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/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.
+ though it's logging level is set to INFO (which isn't normally shown).
Ubuntu Version:
Description: Ubuntu 14.04 LTS
Release: 14.04
Package Version:
python3-gi 3.12.0-1
** Also affects: pygobject (Ubuntu Trusty)
Importance: Undecided
Status: New
** Also affects: pygobject (Ubuntu Utopic)
Importance: Undecided
Status: New
** Bug watch added: GNOME Bug Tracker #726877
https://bugzilla.gnome.org/show_bug.cgi?id=726877
** Also affects: pygobject via
https://bugzilla.gnome.org/show_bug.cgi?id=726877
Importance: Unknown
Status: Unknown
** 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/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 INFO (which isn't normally shown).
+ Upstream fix: https://git.gnome.org/browse/pygobject/commit/?id=ac8b59e
+
Ubuntu Version:
Description: Ubuntu 14.04 LTS
Release: 14.04
Package Version:
python3-gi 3.12.0-1
** Changed in: pygobject (Ubuntu Utopic)
Status: New => In Progress
** Changed in: pygobject (Ubuntu Utopic)
Assignee: (unassigned) => Martin Pitt (pitti)
--
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