Skip to content

Use logger.debug in code analyzer #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: codebase-analysis-report
Choose a base branch
from

Conversation

CrazyDubya
Copy link
Owner

Summary

  • replace debug print statements in code_analyzer.py with logger.debug
  • hook up CodeAnalyzer to the logging system

Testing

  • pytest -q (fails: AttributeError in CodeAnalyzer)

https://chatgpt.com/codex/tasks/task_e_684a55f750848332a616b147b2d7cd2f

Copy link

@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 replaces debug print statements in the code analyzer with proper logging infrastructure using Python's logging module. The changes focus on improving debugging capabilities and code quality by replacing print statements with structured logging.

  • Adds logging setup with a logger instance for the CodeAnalyzer class
  • Replaces all debug print statements with logger.debug calls
  • Sets up basic logging configuration at the module level
Comments suppressed due to low confidence (1)

src/analyzer/code_analyzer.py:10

  • The logger name should follow Python's convention of using name instead of a hardcoded string. This ensures proper logger hierarchy and makes it easier to configure logging per module. Change to: logger = logging.getLogger(name)
logger = logging.getLogger("CodeAnalyzer")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant