Project

General

Profile

Actions

Bug #11778

open

Logger makes application fail on other RAILS_ENVs

Added by Daniel Lobato Garcia over 8 years ago. Updated almost 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Logging
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.

Actions #1

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 ()
Actions #2

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

Also available in: Atom PDF