-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Labels
backendPertains to the Python backend.Pertains to the Python backend.bugSomething isn't workingSomething isn't workingneeds-triage
Description
Describe the bug
chainlit sets up the logging for the application it is in. A library should not do this.
Reproduces:
- Setup a chainlit app at chainlit_app.py.
- mount to fastapi at app.py
at app.py you configure logging, it would not word due to chainlit
Root cause:
chainlit/backend/chainlit/logger.py
Line 4 in 1aa9ad1
| logging.basicConfig( |
Chainlit should setup logging only if it is run as a cli, not while as a library.
Metadata
Metadata
Assignees
Labels
backendPertains to the Python backend.Pertains to the Python backend.bugSomething isn't workingSomething isn't workingneeds-triage