Skip to content

Commit

Permalink
Downgrade reverse-sync log to debug (ansible#645)
Browse files Browse the repository at this point in the history
In AWX this is super noisy

```
tools_awx_1       | 2024-11-12 14:07:31,708 ERROR    [-] ansible_base.resource_registry.apps RESOURCE_SERVER is not configured. Reverse sync will not be enabled.
```

At a point our plan changed, so that this case is intended. So No need
to issue an error log if it's intended.
  • Loading branch information
AlanCoding authored Nov 15, 2024
1 parent 27d2bf4 commit 2cf0b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible_base/resource_registry/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def proxies_of_model(cls):
def _should_reverse_sync():
enabled = getattr(settings, 'RESOURCE_SERVER_SYNC_ENABLED', False)
if enabled and (not resource_server_defined()):
logger.error("RESOURCE_SERVER is not configured. Reverse sync will not be enabled.")
logger.debug("RESOURCE_SERVER is not configured. Reverse sync will not be enabled.")
enabled = False
if enabled and resource_server_defined() and ('SECRET_KEY' not in settings.RESOURCE_SERVER or not settings.RESOURCE_SERVER['SECRET_KEY']):
logger.error("RESOURCE_SERVER['SECRET_KEY'] is not configured. Reverse sync will not be enabled.")
Expand Down

0 comments on commit 2cf0b5b

Please sign in to comment.