Skip to content

Commit

Permalink
removing config.change
Browse files Browse the repository at this point in the history
  • Loading branch information
lborda committed Mar 8, 2016
1 parent 9015f6d commit 52edb76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions hooks/keystone_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ def __call__(self):
debug = config('debug')
if debug:
ctxt['root_level'] = 'DEBUG'
if config.changed('log-level'):
ctxt['log_level'] = config('log-level')
ctxt['log_level'] = config('log-level')

return ctxt
2 changes: 1 addition & 1 deletion templates/kilo/logging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ level={{ root_level }}
{% else -%}
level=WARNING
{% endif -%}
handlers=file, production
handlers=file,production

[handler_production]
class=handlers.SysLogHandler
Expand Down
2 changes: 1 addition & 1 deletion unit_tests/test_keystone_contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,4 @@ def test_keystone_logger_context(self, mock_config):

mock_config.return_value = 'True'
self.assertEqual({'root_level': 'DEBUG'}, ctxt())
self.assertEqual({'log_level': 'DEBUG'}, ctxt())
self.assertEqual({'log_level': 'WARNING'}, ctxt())

0 comments on commit 52edb76

Please sign in to comment.