Issue #14480 has been updated by Kelsey Hightower. Status changed from Unreviewed to Accepted
---------------------------------------- Bug #14480: --debug should probably be a global setting https://projects.puppetlabs.com/issues/14480#change-64360 Author: Chris Price Status: Accepted Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: I have seen some code paths (e.g. in #load_actions in interface.rb in 2.7.x) where there are calls to "Puppet.debug" that are guaranteed to occur before the options are parsed (and thus, before the log level is set)--so those messages will never make it to a log, even if the user runs with "--debug". That particular line of code appears to have been removed (as that loading was ported over to use the autoloader), but I think this is probably a more general problem. We should probably move "--debug" to be a global setting and make sure that it is handled *very* early in the bootstrapping cycle. (For that matter, all of the logging initialization should probably be handled at that same point in time...) Right now, several different applications (at least master, agent, and face_base) seem to decided individually whether or not to handle --debug and what to do with it. -- 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://projects.puppetlabs.com/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.
