Skip to content

chore: add more debug logging messages#63

Merged
ryanking13 merged 3 commits intomainfrom
gyeongjae/debug-logging
Feb 2, 2026
Merged

chore: add more debug logging messages#63
ryanking13 merged 3 commits intomainfrom
gyeongjae/debug-logging

Conversation

@ryanking13
Copy link
Contributor

This adds more debug logging messages and make it possible to configure the log level with PYWRANGLER_LOG env variable.

I think this is useful when users encounter issues using pywrangler and we want to understand what is happening.

example log:

DEBUG    pywrangler version: 1.7.0
DEBUG    Python: 3.12.12
DEBUG    Platform: darwin
DEBUG    Working directory: /Users/gyeongjae/Desktop/github/python-workers-examples/05-langchain
DEBUG    Sync needed - proceeding with installation
DEBUG    Using python version from wrangler config: 3.13
RUNNING  /Users/gyeongjae/Desktop/github/python-workers-examples/05-langchain/.venv-workers/bin/python --version
DEBUG    Virtual environment at /Users/gyeongjae/Desktop/github/python-workers-examples/05-langchain/.venv-workers already exists.
DEBUG    Pyodide virtual environment at /Users/gyeongjae/Desktop/github/python-workers-examples/05-langchain/.venv-workers/pyodide-venv already exists.
DEBUG    Reading /Users/gyeongjae/Desktop/github/python-workers-examples/05-langchain/pyproject.toml...
INFO     Found 3 dependencies.
DEBUG      - webtypy>=0.1.7
DEBUG      - langchain_core
DEBUG      - langchain_openai
INFO     Installing packages into .venv-workers...
RUNNING  uv pip install -r /var/folders/xp/y_tcbwcd3755wjchr2sp1_yc0000gn/T/tmpvn65t242.txt
INFO     Packages installed in .venv-workers.
DEBUG    Using vendor path: /Users/gyeongjae/Desktop/github/python-workers-examples/05-langchain/python_modules
INFO     Installing packages into python_modules...
RUNNING  uv pip install --no-build -r /var/folders/xp/y_tcbwcd3755wjchr2sp1_yc0000gn/T/tmpltb4s_ug.txt --extra-index-url https://index.pyodide.org/0.28.3 --index-strategy unsafe-best-match
RUNNING  uv pip list --format=freeze
DEBUG    Installed packages:
DEBUG      Using Python 3.13.2 environment at: .venv-workers/pyodide-venv
DEBUG      annotated-types==0.7.0
DEBUG      anyio==4.12.1
DEBUG      certifi==2026.1.4
DEBUG      charset-normalizer==3.4.4
DEBUG      distro==1.9.0
DEBUG      httpx==0.28.1
DEBUG      idna==3.11
DEBUG      jiter==0.9.0
DEBUG      jsonpatch==1.33
DEBUG      jsonpointer==3.0.0
DEBUG      langchain-core==1.1.0
DEBUG      langchain-openai==1.1.0
DEBUG      langsmith==0.4.52
DEBUG      openai==2.2.0
DEBUG      orjson==3.10.16
DEBUG      packaging==25.0
DEBUG      pydantic==2.10.6
DEBUG      pydantic-core==2.27.2
DEBUG      pyyaml==6.0.2
DEBUG      regex==2024.11.6
DEBUG      requests==2.32.5
DEBUG      requests-toolbelt==1.0.0
DEBUG      sniffio==1.3.1
DEBUG      tenacity==9.1.2
DEBUG      tiktoken==0.9.0
DEBUG      tqdm==4.67.1
DEBUG      typing-extensions==4.15.0
DEBUG      urllib3==2.6.3
DEBUG      webtypy==0.1.7
DEBUG      zstandard==0.23.0
INFO     Packages installed in python_modules.
SUCCESS  Sync process completed successfully.

@ryanking13 ryanking13 requested review from dom96 and hoodmane January 30, 2026 04:15
Copy link
Contributor

@hoodmane hoodmane left a comment

Choose a reason for hiding this comment

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

Fantastic thanks!

@ryanking13 ryanking13 merged commit 76b4124 into main Feb 2, 2026
9 checks passed
@ryanking13 ryanking13 deleted the gyeongjae/debug-logging branch February 2, 2026 04:33
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