Ticket #1452 (closed cage: fixed)
add method debug to $conf object
Reported by: | coke | Owned by: | jkeenan |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | configure | Version: | trunk |
Severity: | low | Keywords: | |
Cc: | Language: | ||
Patch status: | applied | Platform: |
Description
All the verbose handling in the config steps is keyed off:
$conf->options->get('verbose')
and then this is tested before printing:
print "Currently we only set warnings if using gcc as C compiler\n" if $verbose;
Instead, just define a method on the $conf object and use that:
$conf->debug("Currently we only set warnings if using gcc as C compiler\n");
This would also obviate the need to pass the flag around to all the helper functions, since we're already passing the configure object itself.
Change History
Note: See
TracTickets for help on using
tickets.