After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 596831 - Add debugging option in custom.conf
Add debugging option in custom.conf
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2009-09-30 07:59 UTC by Robert Ancell
Modified: 2009-11-09 20:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add debug/Enable option to custom.conf, pass --debug to slaves (2.76 KB, patch)
2009-09-30 08:00 UTC, Robert Ancell
none Details | Review
updated patch (14.03 KB, patch)
2009-11-05 21:32 UTC, Brian Cameron
committed Details | Review

Description Robert Ancell 2009-09-30 07:59:18 UTC
It is difficult to turn on debugging.  Patch attached to add debug/Enable option to custom.conf.  Also the slaves are spawned without debugging.  This patch passes the --debug flag to the slaves if debug/Enable=true.
Comment 1 Robert Ancell 2009-09-30 08:00:06 UTC
Created attachment 144358 [details] [review]
Add debug/Enable option to custom.conf, pass --debug to slaves
Comment 2 Brian Cameron 2009-09-30 20:50:06 UTC
I think this is a great improvement.  However, if you look at the code in
gdm/daemon, and grep for the function "is_debug_set", you will notice that
there are more places where we really should be checking for whether debug is turned on or not.

Wouldn't it be better if all programs just checked the configuration option in the "is_debug_set" function rather than passing the --debug argument around.  One exception would be where the daemon launches the simple-greeter, since I am not sure that the GUI login program can easily access the daemon's configuration.
Comment 3 Brian Cameron 2009-09-30 20:56:29 UTC
For example, I think it is really important for the session-worker to have its debug turned on when the configuration is set.
Comment 4 Brian Cameron 2009-11-05 21:32:46 UTC
Created attachment 147038 [details] [review]
updated patch

Here is an updated patch that makes all the various GDM programs use the debug/Enable custom.conf key to turn on debug in a consistent way.

This patch also removes the --debug argument from the various programs since it never worked right anyway since the argument was never propegated from the main daemon to the programs it launches.  This patch also removes the 
/apps/gdm/simple-greeter/debug GConf setting for the greeter login GUI.  It's better for everything to just work with the same debug/Enable flag in custom.conf.  This is consistent with how the old GDM worked so it is better for backwards compatibility.
Comment 5 Ray Strode [halfline] 2009-11-09 15:24:12 UTC
Review of attachment 147038 [details] [review]:

Looks good, thanks for doing this.
Comment 6 Brian Cameron 2009-11-09 20:20:45 UTC
Fixed in master.  I also updated the docs/C/gdm.xml with information about the debug/Enable key and removed reference to the --debug option for the gdm program.