Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 1, 2025

Fixes #651. The codebase was using standard library logging but team convention is structlog. This caused issues when structlog-style kwargs were used (see #650).

Changes:

  • Replace logging with structlog in ext_theme_tags.py
  • Add structlog to install_requires in setup.cfg
import structlog
log = structlog.get_logger(__name__)

Note: docs/docext.py intentionally unchanged—it uses Sphinx's logging wrapper, not stdlib.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com//advisories
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Migrate logging to structlog</issue_title>
<issue_description>We hit an issue (#650) trying to use our normal structlog pattern, so we should swap all our logging here over to keep things the same. </issue_description>

<agent_instructions>We need to use the following structure to configure structlog:

import structlog
log = structlog.get_logger(__name__)
```</agent_instructions>

## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Migrate logging to structlog configuration Migrate logging to structlog Dec 1, 2025
Copilot AI requested a review from humitos December 1, 2025 11:11
Copilot finished work on behalf of humitos December 1, 2025 11:11
@humitos humitos marked this pull request as ready for review December 1, 2025 11:24
@humitos humitos requested review from a team as code owners December 1, 2025 11:24
@humitos humitos requested a review from agjohnson December 1, 2025 11:24
Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍🏼

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.

Migrate logging to structlog

2 participants