Skip to content

Conversation

julien-lang
Copy link
Contributor

No description provided.

@julien-lang julien-lang requested a review from Copilot October 9, 2025 17:57
Copy link
Contributor

@Copilot 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

This PR adds deprecation warnings to legacy logging methods in the Engine class to encourage migration to the newer logger interface. The change is part of preparing for the eventual removal of these legacy methods after January 2026.

Key Changes

  • Added deprecation warnings to all five legacy logging methods (log_debug, log_info, log_warning, log_error, log_exception)
  • Imported the warnings module to support the deprecation functionality
  • Set consistent warning messages with a removal timeline of 2026-01

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +1307 to +1312
warnings.warn(
"The `Engine.log_debug` method is deprecated and will be removed "
"at any time after 2026-01. Use `Engine.logger` instead",
DeprecationWarning,
stacklevel=2
)
Copy link

Copilot AI Oct 9, 2025

Choose a reason for hiding this comment

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

The deprecation warning message is duplicated across all five logging methods. Consider extracting this into a constant or helper function to improve maintainability and ensure consistency.

Copilot uses AI. Check for mistakes.

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