Skip to content

Add missing logger import in server.py #8

Description

@claude

Description

The file codeframe/ui/server.py uses logger.error() at line 487 but doesn't have a logger import at the top of the file:

logger.error(f"Error fetching blockers: {e}", exc_info=True)  # Line 487

This will cause a NameError at runtime when this error handling path is executed.

Current Behavior

  • No logger is imported or configured
  • Code will crash with NameError: name 'logger' is not defined if the error handler is triggered

Proposed Solution

Add logger import and configuration at the top of codeframe/ui/server.py:

import logging
logger = logging.getLogger(__name__)

Location

File: codeframe/ui/server.py
Line: 487 (usage)
Fix needed: Add import at top of file

Related

Identified in PR #6 code review - Project Schema Refactoring

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions