Skip to content

Remove deprecated ConnectorConfig.log_level field#70

Merged
b-Tomas merged 3 commits into
nextfrom
breaking/remove-deprecated-log-level
May 20, 2026
Merged

Remove deprecated ConnectorConfig.log_level field#70
b-Tomas merged 3 commits into
nextfrom
breaking/remove-deprecated-log-level

Conversation

@b-Tomas
Copy link
Copy Markdown
Member

@b-Tomas b-Tomas commented May 19, 2026

Summary

  • Remove the deprecated ConnectorConfig.log_level field, its warn_log_level_deprecated() model validator, and the module-level warnings import/filter from models.py
  • Remove the "Deprecated: log_level" section from the models specification docs

Breaking changes

ConnectorConfig.log_level was deprecated in v1.1.0 and is now removed. Passing log_level directly to ConnectorConfig (or subclasses) will raise a Pydantic validation error.

Migration

# Before (v2.x)
api_key: ...
log_level: INFO

# After (v3.0)
api_key: ...
logging:
  log_level: INFO
# Before
config = ConnectorConfig(log_level=LogLevels.INFO, ...)

# After
config = ConnectorConfig(logging=LoggingConfig(log_level=LogLevels.INFO), ...)

LoggingConfig.log_level is unchanged and remains the canonical way to set the log level.

@b-Tomas b-Tomas requested a review from Copilot May 19, 2026 20:10
@b-Tomas b-Tomas self-assigned this May 19, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the deprecated top-level ConnectorConfig.log_level configuration option and its deprecation-warning plumbing, consolidating log level configuration under ConnectorConfig.logging.log_level and updating the spec docs accordingly.

Changes:

  • Removed ConnectorConfig.log_level and the warn_log_level_deprecated() model validator from inorbit_connector/models.py.
  • Removed the module-level warnings import and DeprecationWarning filter from inorbit_connector/models.py.
  • Removed the deprecated log_level section from the models specification documentation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
inorbit_connector/models.py Removes deprecated log_level field + validator and drops module-level deprecation warning configuration.
docs/contents/specification/models.md Deletes the ConnectorConfig.log_level deprecation note from the public spec docs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread inorbit_connector/models.py
@b-Tomas b-Tomas marked this pull request as ready for review May 19, 2026 23:10
@b-Tomas b-Tomas requested a review from miguelgarcia May 19, 2026 23:14
@b-Tomas b-Tomas force-pushed the breaking/remove-deprecated-log-level branch from 92c5e23 to fc22cbd Compare May 19, 2026 23:21
Copy link
Copy Markdown
Member

@miguelgarcia miguelgarcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix linting please

@b-Tomas b-Tomas requested a review from miguelgarcia May 20, 2026 12:20
b-Tomas and others added 3 commits May 20, 2026 09:46
BREAKING CHANGE: `ConnectorConfig.log_level` (deprecated since v1.1.0) is
removed. Use `ConnectorConfig.logging.log_level` instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pydantic v2 defaults to extra="ignore", so removing the deprecated
log_level field would silently drop it instead of erroring. Setting
extra="forbid" ensures stale configs fail loudly.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@b-Tomas b-Tomas force-pushed the breaking/remove-deprecated-log-level branch from 85f2bec to 97d1476 Compare May 20, 2026 12:48
@b-Tomas b-Tomas merged commit 2d4dc5c into next May 20, 2026
13 checks passed
@b-Tomas b-Tomas deleted the breaking/remove-deprecated-log-level branch May 20, 2026 12:53
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