[Backgroundrb-devel] Logging Configuration

Adam Williams adam at thewilliams.ws
Thu Feb 26 16:10:40 EST 2009

Turns out we can only ActiveRecord::Base.silence {} our own queries,  
and getting rid of the ActiveRecord initialization noise will require  
changes to MetaWorker#load_rails_env, where it enables concurrency.

On Feb 26, 2009, at 3:03 PM, Adam Williams wrote:

> I'd like to stop seeing the output of ActiveRecord initialization  
> and queries in the default log file. This I found in the code:
>  log_flag = BDRB_CONFIG[:backgroundrb][:debug_log].nil? ? true :  
> BDRB_CONFIG[:backgroundrb][:debug_load_rails_env]
> I confess I'm a bit confused as to how to achieve the correct  
> configuration. Is this what is needed to stop logging:
>  :backgroundrb:
>    :port: 11006
>    :ip:
>    :debug_log: false
>    :debug_load_rails_env: false
> It seems that the value of :debug_log is treated the same whether it  
> is true or false - the value of :debug_load_rails_env will be  
> returned. If :debug_log is nil, you cannot control anything  
> with :debug_load_rails_env.
> Thanks for any clarification.
>  adam

More information about the Backgroundrb-devel mailing list