Skip to content

Logger INFO messages are incorrectly written to stderr #267

Description

@Saran-K-07

Description

Informational log messages are being written to stderr instead of stdout due to the default logging handler configuration.

Expected Behavior

  • INFO logs should be written to stdout.
  • ERROR logs should be written to stderr.

Actual Behavior

All logger messages, including INFO logs, appear in stderr. This causes subprocess output handling to incorrectly treat normal logs as errors.

Steps to Reproduce

  1. Run the application with subprocess output capture enabled.
  2. Trigger a code path that emits logger.info().
  3. Observe that the message appears in stderr.

Environment

  • OS: Tahoe 26.5.1
  • Python Version: 3.11.13
  • hiring-agent commit/version: 24ba537ba86450fe23b43caef65825d0877ee497

Proposed Solution

Configure separate logging handlers:

  • stdout handler for INFO logs
  • stderr handler for ERROR logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions