Actions
Bug #11778
openLogger makes application fail on other RAILS_ENVs
Status:
New
Priority:
Normal
Assignee:
-
Category:
Logging
Target version:
-
Description
If RAILS_ENV is set to anything that is not configured on logger.yaml, rails fails to load with a message:
`deep_merge!': undefined method `each_pair' for nil:NilClass (NoMethodError)
from /home/daniel/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.21/lib/active_support/core_ext/hash/deep_merge.rb:10:in `deep_merge'
from /home/daniel/workspace/cleanforeman/lib/foreman/logging.rb:78:in `load_config'
from /home/daniel/workspace/cleanforeman/lib/foreman/logging.rb:17:in `configure'
The message should be clearer or we should use the default on environments not defined in logger.yaml.
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2703 added
- Pull request deleted (
)
Updated by Dominic Cleal almost 8 years ago
- Category set to Logging
- Status changed from Ready For Testing to New
- Assignee deleted (
Daniel Lobato Garcia) - Pull request deleted (
https://github.com/theforeman/foreman/pull/2703)
Actions