Skip to content
This repository
Browse code

Merge pull request #21 from AlexanderPavlenko/fix-deprecated-path-api

deprecation warning on start
  • Loading branch information...
commit 2e1c7d310c82ea559f0bba7c86a484ce4b075128 2 parents e514118 + f0e9065
Alex Stupka authored December 07, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/central_logger/railtie.rb
2  lib/central_logger/railtie.rb
@@ -9,7 +9,7 @@ class Railtie < Rails::Railtie
9 9
     initializer :initialize_central_logger, :before => :initialize_logger do
10 10
       app_config = Rails.application.config
11 11
       Rails.logger = config.logger = create_logger(app_config,
12  
-                                                   app_config.paths.log.to_a.first)
  12
+        ((app_config.paths['log'] rescue nil) || app_config.paths.log.to_a).first)
13 13
     end
14 14
   end
15 15
 end

0 notes on commit 2e1c7d3

Please sign in to comment.
Something went wrong with that request. Please try again.