On Tue, Mar 31, 2009 at 11:43 AM, John Mettraux <[email protected]>wrote:
> > On Tue, Mar 31, 2009 at 6:40 PM, gaoxt1983 <[email protected]> wrote: > > > > in vendor/plugings/ruote_plugin/init.rb > > in > > > > h[:logger] = Logger.new("log/ruote_#{RAILS_ENV}.log", 10, 1024000) > > > > this line, it should be > > h[:logger] = Logger.new("#{RAILS_ROOT}/log/ruote_#{RAILS_ENV}.log", > > 10, 1024000) > > > > because you can't assume that you always in rails directory. Some of > > the applications don't make this assumption. > > > > (...) > > Hello, > > excellent feedback. > > http://rubyforge.org/tracker/index.php?group_id=2609&atid=10023 > > I will fix that as soon as possible. > I fixed the missing paths in ruote_plugin and John pushed the changes: * I've made sure all the paths are relative to RAILS_ROOT (logging and work directory) * Switch from standard Logger to ActiveSupport::BufferedLogger * Made the log level environment aware, so production is less verbose One side effect is the logs for ruote will not be rotated, it's up to you to extend your log rotation configs for your production logs to your ruote logs as well. Best -- Kenneth Kalmer [email protected] http://opensourcery.co.za --~--~---------~--~----~------------~-------~--~----~ you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en -~----------~----~----~----~------~----~------~--~---
