How can I disable debug logs when running the work...
# ask-ai
p
How can I disable debug logs when running the worker with start command?
t
Thanks for reaching out, Mario. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi there! If you'd like to disable debug logs when running the worker with the start command, a simple way is to set the log level to a higher severity than
DEBUG
using the
--log-level
flag. Here are some examples to help you out: • Python:
python agent.py start --log-level=INFO
• Node.js:
npm run start -- --log-level=info
or
pnpm run start --log-level=info
Just so you know, these are the available log levels: • `DEBUG`: Detailed information for debugging. • `INFO`: General information (this is the default). • `WARNING`: Warning messages. • `ERROR`: Error messages. • `CRITICAL`: Critical error messages. By setting the log level to
INFO
or higher, you'll effectively suppress those
DEBUG
-level logs. I hope this helps! If you have any more questions, feel free to ask. Sources: Docs::Agents | Log collection | LiveKit Docs