Skip to content

fix: configure log colors#1083

Draft
alexbilbie wants to merge 1 commit into
karrioapi:mainfrom
alexbilbie:fix/log-colorize-env
Draft

fix: configure log colors#1083
alexbilbie wants to merge 1 commit into
karrioapi:mainfrom
alexbilbie:fix/log-colorize-env

Conversation

@alexbilbie
Copy link
Copy Markdown

@alexbilbie alexbilbie commented May 14, 2026

Summary

  • add LOG_COLORIZE server env setting
  • pass colorize through Django Loguru setup
  • add SDK KARRIO_LOG_COLORIZE support, falling back to LOG_COLORIZE
  • keep colored logs enabled by default

Impact

Set LOG_COLORIZE=false to disable ANSI-colored server console logs. Set KARRIO_LOG_COLORIZE=false for standalone SDK logs.

Validation

  • python3 -m py_compile apps/api/karrio/server/settings/base.py modules/core/karrio/server/core/logging.py modules/sdk/karrio/core/utils/logger.py
  • git diff --check

Server/SDK test wrappers not run: local .venv/karrio is missing, so karrio command/env unavailable.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

@alexbilbie is attempting to deploy a commit to the karrio Team on Vercel.

A member of the Team first needs to authorize it.

@alexbilbie alexbilbie force-pushed the fix/log-colorize-env branch from 7cc7317 to 9764e6e Compare May 15, 2026 06:12
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.

1 participant