Skip to content

Commit 1818ebf

Browse files
committed
fix(templates): correct logging level variables in YAML files
- Modify public.yaml to use correct serverLoggingLevel variable - Add ELASTIC_LOGGING_LEVEL variable to public.yaml - Add ELASTIC_LOGGING_LEVEL variable to private.yaml refactor(config): simplify logging level assignment logic - Remove redundant line break in logging level assignment
1 parent 3617061 commit 1818ebf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tracardi/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ def __init__(self, env):
154154
self.http_auth_password = self.env.get('ELASTIC_HTTP_AUTH_PASSWORD', None)
155155
self.scheme = self.env.get('ELASTIC_SCHEME', 'http')
156156
self.query_timeout = get_env_as_int('ELASTIC_QUERY_TIMEOUT', 12)
157-
self.logging_level = _get_logging_level(
158-
env['ELASTIC_LOGGING_LEVEL']) if 'ELASTIC_LOGGING_LEVEL' in env else logging.ERROR
157+
self.logging_level = _get_logging_level(env['ELASTIC_LOGGING_LEVEL']) if 'ELASTIC_LOGGING_LEVEL' in env else logging.ERROR
159158

160159
if self.unset_credentials:
161160
self._unset_credentials()

0 commit comments

Comments
 (0)