Issue #2282 has been updated by Brice Figureau.
James Turnbull wrote: > Puppet's debugging needs to improve significantly. It's currently an > all-or-nothing affair, where either debugging is produced for all components > or none. This makes debugging annoying to use, because you cannot just get > extra info on the areas you're interested in, but it also discourages the use > of debugging internally, because you know that any debugging is likely to be > printed pretty often. > > Instead, the debugging should be enhanced to support debug types, e.g., > 'execution', 'service', 'provider', network', and lots more. Then, when > people enable debugging, 'true' would enable all debug types, or they could > enable specific types with '--debug network --debug execution', or using > comma-separated debug types. > > This would enable much more fine-tuned use of debugging, both for development > and for users, since it would encourage developers to add more useful > debugging, and it would give users much more precision in how they used > debugging. > > Note that it should be possible to list all debug types, so that users can > figure out what kind of debugging is available; most likely, debug types > should be registered with documentation, so that the debug types can be > listed with those docs. A few other features related to James' one: * have the possibility to change the log level (or debug information) while the daemon (would work for puppetd and puppetmasterd) is running (ie signal or the daemon is listening to a ctl socket, or whatever). * have the possibility to enable debug on the master for a specific client. Let's say only one of your client exhibit a strange issue on your master. Add its fqdn or cert DN to a debug list/file and the master will enter debug log level only for this client. This way it gets easier to extract meaningfull information from the log. ---------------------------------------- Refactor #2282: Puppet debugging http://projects.reductivelabs.com/issues/2282 Author: James Turnbull Status: Needs design decision Priority: Normal Assigned to: Luke Kanies Category: plumbing Target version: unplanned Affected version: 0.24.8 Puppet's debugging needs to improve significantly. It's currently an all-or-nothing affair, where either debugging is produced for all components or none. This makes debugging annoying to use, because you cannot just get extra info on the areas you're interested in, but it also discourages the use of debugging internally, because you know that any debugging is likely to be printed pretty often. Instead, the debugging should be enhanced to support debug types, e.g., 'execution', 'service', 'provider', network', and lots more. Then, when people enable debugging, 'true' would enable all debug types, or they could enable specific types with '--debug network --debug execution', or using comma-separated debug types. This would enable much more fine-tuned use of debugging, both for development and for users, since it would encourage developers to add more useful debugging, and it would give users much more precision in how they used debugging. Note that it should be possible to list all debug types, so that users can figure out what kind of debugging is available; most likely, debug types should be registered with documentation, so that the debug types can be listed with those docs. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
