2012-07-20 12 views
6

Estoy intentando instalar un complemento en redmine, mylyn.constante no inicializada RAILS_DEFAULT_LOGGER

me sale el siguiente error:

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 

Esta constante es obsoleto? ¿Cómo puedo reemplazar?

+0

es necesario proporcionar más información si quiere ayuda. ¿De dónde viene esa constante? –

+0

@Beerlington Desde aquí: /home/redmine/plugins/redmine-plugin/init.rb Acabo de comentar la línea, y aparentemente no tuve más problemas. – Falci

Respuesta

6

Una nota para el futuro: RAILS_DEFAULT_LOGGER ha quedado obsoleta en las versiones 3.x.

Ahora puede utilizar:

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

  2. Cambio "RAILS_DEFAULT_LOGGER.info" a ":: Rails.logger.info".

Cuestiones relacionadas