Hi all,

I'm trying to get debug level logging in production for Merb- something
where we can see the SQL statements logged by ActiveRecord.  I've tried
configuring config/environments/production:

  Merb::Config.use { |c|
    c[:exception_details] = true
    c[:reload_classes] = false
    c[:log_level] = :debug
    c[:log_file] = Merb.root / "log" / "production.log"
    # c[:log_file] = Merb.log_path + "/production.log"
  }

And setting the log on the command line with:

  merb -p3001 -a thin -e production -D -l debug -L log/production.log -d

With no change.  Any thoughts?  Are any of you using verbose logs on dev
or prod? How about in run_later? in dev mode I've had issues getting
that to log to anywhere at all.  All I can get for a normal request is:

  merb : worker (port 3001) ~ Started request handling: Thu Aug 13 17:18:44 
-0400 2009
  merb : worker (port 3001) ~ Routed to: {"action"=>"index", 
"controller"=>"merchants"}
  merb : worker (port 3001) ~ Params: {"action"=>"index", 
"controller"=>"merchants"}
  merb : worker (port 3001) ~ {:after_filters_time=>0.000261, 
:before_filters_time=>0.000116, :action_time=>0.538712, 
:dispatch_time=>0.540385}
  merb : worker (port 3001) ~ 

Thanks for your thoughts!

-- 
Matthew Beale :: 607 227 0871
Resume & Portfolio @ http://madhatted.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to