Skip to content

Commit

Permalink
preventing "enabled" to be populated to Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
kirgrim committed Oct 3, 2024
1 parent f68b7a7 commit b1acfee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neon_utils/log_aggregators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def init_log_aggregators(config: dict = None):
config = config or Configuration()
for service_name, handler in _service_name_to_handler.items():
service_config = _get_log_aggregator_config(config=config, name=service_name)
if bool(service_config.get('enabled')):
if bool(service_config.pop('enabled', False)):
service_module = importlib.import_module(f'.{service_name}', __name__)
getattr(service_module, handler)(config=service_config)

Expand Down

0 comments on commit b1acfee

Please sign in to comment.