Skip to content

Chainlit sets logging format before application code #2682

@goatwu1993

Description

@goatwu1993

Describe the bug

chainlit sets up the logging for the application it is in. A library should not do this.

Reproduces:

  1. Setup a chainlit app at chainlit_app.py.
  2. mount to fastapi at app.py

at app.py you configure logging, it would not word due to chainlit

Root cause:

logging.basicConfig(

Chainlit should setup logging only if it is run as a cli, not while as a library.

#1676

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendPertains to the Python backend.bugSomething isn't workingneeds-triage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions