This project is archived and is in readonly mode.
Setting ActiveRecord::Base.logger is not effective
-
Doug Daniels
I think it's b/c I needed to use the Railties require instead of the straight require:
require 'active_record/railtie'Seems like you can't run it directly w/o Railties.
-
José Valim
- Milestone cleared.
- Assigned user set to José Valim
-
Repository
- State changed from new to resolved
(from [6788db824ab732b13493a9d702dd8fb89fa153c8]) Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 Setting ActiveRecord::Base.logger is not effective state:resolved] http://github.com/rails/rails/commit/6788db824ab732b13493a9d702dd8f...
-
Prem Sichanugrist (sikachu)
- State changed from resolved to open
José, after you have moved the
Rails::LogSubscribertoActiveSupport::LogSubscriber, seems like you left out one obsolete test case. I've attached the patch to remove it, and it should make the railtie_test to pass again. -
Repository
- State changed from open to resolved
(from [974196b0910924d08640703cc558c48ca049246a]) Remove obsolete test case, since we have move Rails::LogSubscriber to ActiveSupport::LogSubscriber in [6788db824ab732b13493a9d702dd8fb89fa153c8] [#4816 Setting ActiveRecord::Base.logger is not effective state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/974196b0910924d08640703cc558c4...
