[Backgroundrb-devel] logging problem in production

Ezra Zygmuntowicz ezmobius at gmail.com
Sat Feb 3 16:02:43 EST 2007


Bill-

	I'm not sure why it is writing to the development log instead of  
production. But know this, calls to ActiveRecord objects in a worker  
will still write their sql to the normal rails log. The  
backgroundrb.log just logs errors and calls to @logger in a worker  
also log to the backgroundrb.log

-Ezra

On Feb 3, 2007, at 10:33 AM, Bill Walton wrote:

> An update:
>
> I have changed every reference I could find from 'development' to  
> 'production'.  I've also changed all references to 'localhost' to  
> '127.0.0.1' as the support folks told me that using localhost in  
> database.yml could cause me problems with MySQL. When I say all, I  
> mean all.  That includes the default settings in the start script.   
> And BackgrounDRb is still logging the database selects being  
> performed in the worker to the development.log file instead of  
> production.log.
>
> Anybody?
>
> Thanks much in advance,
> Bill
> ----- Original Message -----
> From: Bill Walton
> To: BackgroundRb
> Sent: Friday, February 02, 2007 5:34 PM
> Subject: [Backgroundrb-devel] logging problem in production
>
> Greetings all;
>
> I've just moved my app into production and BackgrounDRb is writing  
> to development.log.  The backgroundrb.yml file specifies  
> production, as does environment.rb.
>
> A little background (no pun intended ;-0 )  I'm using the 'old'  
> version of backgroundrb for session management.  In the app,  
> whenever a visitor changes pages I record the time in a db record.   
> In the worker, once a second, I'm doing a find for that record.   
> Backgroundrb is logging that find in development.log, not in  
> production.log as I expected.
>
> Anybody got any idea what I've done wrong?
>
> Thanks!
> Bill
>
>
> _______________________________________________
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
> _______________________________________________
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/backgroundrb-devel

-- Ezra Zygmuntowicz 
-- Lead Rails Evangelist
-- ez at engineyard.com
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)




More information about the Backgroundrb-devel mailing list