Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Active record logs

#69

It would be great to enable active record logs.

This can be done like that:

module Adhearsion class Initializer

class DatabaseInitializer
  class << self
    def start
      require_dependencies
      require_models
      @@config = Adhearsion::AHN_CONFIG.database
      # You may need to uncomment the following line for older versions of ActiveRecord
      # ActiveRecord::Base.allow_concurrency = true
      establish_connection
      ActiveRecord::Base.logger = Logger.new(File.join(AHN_ROOT, 'log', 'database.log'))
      create_call_hook_for_connection_cleanup
    end

...

Note: You may want to enable/disable this by configuration

Reported by Deleted User · May 5th, 2009 @ 05:12 AM

State: resolved
Milestone: 0.8.5
Assigned to: Ben Klang Ben Klang

Activity

  1. Jay Phillips
    Jay Phillips
    • State changed from new to open

    You're right, this should definitely be in master.

    June 4th, 2009 @ 04:08 PM

  2. Ben Klang
    Ben Klang
    • Milestone cleared.
    • State changed from open to resolved
    • Assigned user changed from Jay Phillips to Ben Klang
    • Milestone order changed from 0 to 0

    June 26th, 2010 @ 02:18 AM

  3. Ben Klang
    Ben Klang
    • Milestone set to 0.8.5
    • Milestone order changed from 1 to 0

    June 26th, 2010 @ 02:20 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.