#69 ✓resolved

Active record logs

Reported by Thomas | May 5th, 2009 @ 05:12 AM | in 0.8.5

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
      @@config = Adhearsion::AHN_CONFIG.database
      # You may need to uncomment the following line for older versions of ActiveRecord
      # ActiveRecord::Base.allow_concurrency = true
      ActiveRecord::Base.logger = Logger.new(File.join(AHN_ROOT, 'log', 'database.log'))


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

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket