Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root-level logger config in livekit.agents.ipc.proc_lazy_main.proc_main #1107

Open
stopdesign opened this issue Nov 19, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@stopdesign
Copy link

This code is called dynamically (at runtime, not during import) and prevents me from configuring root-level logger in my application if I use livekit.agents.cli for handling workers.

root_logger = logging.getLogger()
root_logger.setLevel(logging.NOTSET)

https://github.com/dsgolman/agents/blob/ca3e47aed53a8a54a5a8bcff47c7f101cab3e4d9/livekit-agents/livekit/agents/ipc/proc_lazy_main.py#L32

@stopdesign stopdesign added the bug Something isn't working label Nov 19, 2024
@theomonnom
Copy link
Member

Hey, this is the root_logger of a subprocess, every log is forwarded to the worker process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants