[symfony-users] Re: How do I hush up noisy Symfony tasks?

2009-10-30 Thread David Ashwood
How about just turning off logging during your task and enabling it again when it's done with sfConfig::get & set? On Fri, 2009-10-30 at 17:07 -0400, Tom Boutell wrote: > I've written a task that needs privileges that are normally checked > for based on the identity of the current user. So I s

[symfony-users] Re: How do I hush up noisy Symfony tasks?

2009-10-30 Thread David Ashwood
$loggingStateBefore = sfConfig::set('sf_logging_enabled',false); sfConfig::set('sf_logging_enabled' ,false); // // Your process ideally in a try/catch to ensure you can re-enable it // again // sfConfig::set('sf_logging_enabled',$loggingStateBefore); I think there are only 2 settings you might

[symfony-users] Re: How do I hush up noisy Symfony tasks?

2009-11-02 Thread Tom Boutell
Thanks David that might be the way to go. Ideally I could convince task logging to go to the log files instead, at least when there's an environment. On Oct 30, 4:26 pm, David Ashwood wrote: > $loggingStateBefore = sfConfig::set('sf_logging_enabled',false); > sfConfig::set('sf_logging_enabled' ,