Skip to content

fix: downgrade AuthConfig partial-init log from WARNING to INFO#1052

Open
anatolykoptev wants to merge 1 commit intoMemTensor:mainfrom
anatolykoptev:fix/authconfig-warning-spam
Open

fix: downgrade AuthConfig partial-init log from WARNING to INFO#1052
anatolykoptev wants to merge 1 commit intoMemTensor:mainfrom
anatolykoptev:fix/authconfig-warning-spam

Conversation

@anatolykoptev
Copy link

Summary

AuthConfig.validate_partial_initialization() logs a WARNING on every startup when some auth components (openai, graph_db, rabbitmq) are not configured:

WARNING - Failed to initialize components: openai, graph_db. Successfully initialized: rabbitmq

This is noisy because partial configuration is intentional and common — most deployments only configure the components they need. The individual from_local_env() methods already log appropriate per-component messages (INFO for skipped, WARNING for actual failures).

Fix

  • Change the partial-init log from WARNING to INFO (with clearer wording: "not configured" instead of "Failed to initialize")
  • Keep WARNING only for the edge case where all components are None (likely a real misconfiguration)

Test plan

  • Start scheduler with only RabbitMQ configured — no WARNING in logs, just INFO
  • Start scheduler with no auth components — WARNING still logged
  • Start scheduler with all components configured — no partial-init message at all

AuthConfig.validate_partial_initialization() logs a WARNING on every
startup when some components (openai, graph_db) are not configured.
This is noisy because partial configuration is a valid and common
state — the individual from_local_env() methods already log
appropriate warnings for actual initialization failures.

Change the partial-init log to INFO level; keep WARNING only for the
edge case where ALL components are None.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant