2012-07-20 7 views
6

redmine, mylyn에 플러그인을 설치하려고합니다. 이 상수는초기화되지 않은 상수 RAILS_DEFAULT_LOGGER

uninitialized constant RAILS_DEFAULT_LOGGER 

    0 /home/redmine/plugins/redmine-plugin/init.rb 3 
    1 /home/redmine/lib/redmine/plugin.rb  129  in `load' 
    2 /home/redmine/lib/redmine/plugin.rb  120  in `each' 
    3 /home/redmine/lib/redmine/plugin.rb  120  in `load' 
    4 /home/redmine/config/initializers/30-redmine.rb  13 
    5 /usr/lib64/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/engine.rb 588  
    6 /usr/lib64/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/engine.rb 587  in `each' 
    7 /usr/lib64/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/engine.rb 587  
    8 /usr/lib64/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb  30 in `instance_exec' 
    9 /usr/lib64/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb  30 in `run' 
    10 /usr/lib64/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb  55 in `run_initializers' 
    11 /usr/lib64/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb  54 in `each' 
    12 /usr/lib64/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb  54 in `run_initializers' 
    13 /usr/lib64/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/application.rb 136  in `initialize!' 
    14 /usr/lib64/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/configurable.rb 30 in `send' 
    15 /usr/lib64/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/configurable.rb 30 in `method_missing' 
    16 /home/redmine/config/environment.rb  19 
    17 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/classic_rails/application_spawner.rb  222  in `require' 
    18 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/classic_rails/application_spawner.rb  222  in `preload_application' 
    19 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/classic_rails/application_spawner.rb  181  in `initialize_server' 
    20 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/utils.rb  572  in `report_app_init_status' 
    21 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/classic_rails/application_spawner.rb  174  in `initialize_server' 
    22 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server.rb 204  in `start_synchronously' 
    23 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server.rb 180  in `start' 
    24 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/classic_rails/application_spawner.rb  149  in `start' 
    25 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/spawn_manager.rb  219  in `spawn_rails_application' 
    26 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server_collection.rb 132  in `lookup_or_add' 
    27 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/spawn_manager.rb  214  in `spawn_rails_application' 
    28 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server_collection.rb 82 in `synchronize' 
    29 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server_collection.rb 79 in `synchronize' 
    30 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/spawn_manager.rb  213  in `spawn_rails_application' 
    31 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/spawn_manager.rb  132  in `spawn_application' 
    32 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/spawn_manager.rb  275  in `handle_spawn_application' 
    33 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server.rb 357  in `__send__' 
    34 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server.rb 357  in `server_main_loop' 
    35 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server.rb 206  in `start_synchronously' 
    36 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/helper-scripts/passenger-spawn-server 99 

를 더 이상 사용되지 않습니다 :

나는 다음과 같은 오류가? 교체하는 방법?

+0

당신은 당신이 도움을 원한다면 더 많은 정보를 제공해야합니다. 그 상수는 어디서 오는거야? –

+0

@Beerlington 여기에서 /home/redmine/plugins/redmine-plugin/init.rb 방금 ​​줄을 주석 처리했으며 더 이상 문제가 없었습니다. – Falci

답변

6

미래를위한 메모 : 3.x 버전에서는 RAILS_DEFAULT_LOGGER가 더 이상 사용되지 않습니다.

이제 사용할 수 있습니다

Rails.logger.info 
13
  1. 열기 /home/redmine/plugins/redmine-plugin/init.rb

  2. 변경 "RAILS_DEFAULT_LOGGER.info"을 ":: Rails.logger.info".