Bug 63870 - Actually print debug messages when --debug
Summary: Actually print debug messages when --debug
Alias: None
Product: accountsservice
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Matthias Clasen
QA Contact:
Depends on:
Reported: 2013-04-24 09:12 UTC by Stef Walter
Modified: 2013-05-11 19:36 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:

Actually print debug messages when --debug (1.92 KB, patch)
2013-04-24 09:12 UTC, Stef Walter
Details | Splinter Review

Description Stef Walter 2013-04-24 09:12:08 UTC
Install our own log handler for debug messages when --debug
but not G_MESSAGES_DEBUG. This makes --debug work as one would

We don't do g_setenv because its lack of thread-safety makes it
a poor pattern, and addition might affect child processes unexpectedly.
Comment 1 Stef Walter 2013-04-24 09:12:11 UTC
Created attachment 78411 [details] [review]
Actually print debug messages when --debug

Because the default log handler requires G_MESSAGES_DEBUG to
be set to print debug messages, install our own handler if
--debug but not G_MESSAGES_DEBUG

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.