Skip to content

Conversation

Copy link

Copilot AI commented Jan 25, 2026

📥 Pull Request

✨ Description of new changes

Adds a --debug global flag that enables verbose debug logging to both console and log file. Debug logging activates when either the flag is passed OR debug_enabled config is true.

Changes

  • fab_global_params.py: Added --debug flag to global parser options
  • fab_logger.py:
    • Added set_verbose_enabled() and is_debug_enabled() functions
    • log_debug() now writes to console ([debug] prefix) and log file
    • All HTTP logging functions use unified is_debug_enabled() check
  • main.py: Propagates --debug flag to logging system
  • docs/essentials/settings.md: Added "Debug Logging" documentation section
  • Tests: Added coverage for new debug flag functionality

Usage

# Per-command debug logging
fab ls / --debug

# Persistent debug logging via config
fab config set debug_enabled true

Output shows log file location and prefixes debug messages with [debug]:

! '--debug' is on (/home/user/.local/state/fabric-cli/log/fabcli_debug.log)
[debug] Error using encrypted cache: ...

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 25, 2026 12:59
Co-authored-by: ayeshurun <98805507+ayeshurun@users.noreply.github.com>
Co-authored-by: ayeshurun <98805507+ayeshurun@users.noreply.github.com>
Copilot AI changed the title [WIP] Enhance CLI logging with fab_debug for detailed output feat(logging): add --debug global flag for enhanced CLI logging Jan 25, 2026
Copilot AI requested a review from ayeshurun January 25, 2026 13:04
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.

2 participants