Skip to content

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

Merged
CaralHsi merged 1 commit into
MemTensor:dev-20260302-v2.0.8from
anatolykoptev:fix/authconfig-warning-spam
Feb 27, 2026
Merged

fix: downgrade AuthConfig partial-init log from WARNING to INFO#1052
CaralHsi merged 1 commit into
MemTensor:dev-20260302-v2.0.8from
anatolykoptev:fix/authconfig-warning-spam

Conversation

@anatolykoptev
Copy link
Copy Markdown
Contributor

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>
@CaralHsi CaralHsi changed the base branch from main to dev-20260302-v2.0.8 February 27, 2026 08:00
@CaralHsi CaralHsi merged commit d3dc6b8 into MemTensor:dev-20260302-v2.0.8 Feb 27, 2026
16 checks passed
@archieang
Copy link
Copy Markdown
Collaborator

Hey @anatolykoptev! Thanks for the contribution — already merged your PR, thanks for putting this together! 🚀

Btw if you enjoyed contributing and want to stay connected with the project, we run a Discord server for contributors, a chill space to discuss features, ask questions, or pick up new issues 👉🏻 MemOS Discord Server (Contributor Exclusive)

Thanks again for shipping this, and happy MemOSing 🧠✨

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.

3 participants