Livekit incorrectly Double and Triple-logging entries

I’ve noticed logging is a bit weird on livekit. When running locally you have to pass in a flag to set the log level, however, it seems that all logs print 2 or 3 times. This issue has plagued my terminal window for a while now. Here’s an example, obviously my code only has one logger.info() entry here but livekit is printing 3 logs to terminal:
```
[2026-03-11 18:24:50,911][INFO] on_user_turn_completed hit.
[2026-03-11 18:24:50,911][INFO] on_user_turn_completed hit.
{“message”: “on_user_turn_completed hit.”, “level”: “INFO”, “name”: “agent”, “pid”: 80688, “job_id”: “AJ_sLpKJ5VwrsVT”, “room_id”: “RM_jYaaLeyaQRS4”, “timestamp”: “2026-03-12T00:24:50.911370+00:00”}
```

I guess the implication is that on_user_turn_completed is being called multiple times? That obviously should not happen, I wonder if you have multiple agents running somehow, separate dev processes for example :thinking:

I mean, that’s possible, but I run my agent locally, and verified there’s no agents running in livekit cloud. My plan only allows one agent in livekit cloud at a time anyway.
my local script:
`set -a && source .env.local && set +a && PYTHONPATH=. python3 voice-agent-runtime/agent.py start --log-level=INFO`

I’d be VERY surprised if I was the only one experiencing this. By the way, any log anywhere logs 3 times. Twice as regular logs, and once as livekit-formatted messages with timestamps (see my original post, notice the difference). I have event emitters in @session.on(“chat_item_added”) and can prove I am not running multiple agents at once.

also to your point about multiple agents, notice the timestamps, they match up to the ms, so that’s not it.

I agree it’s unusual. I did search for similar reports of this on GitHub issues and our internal support system but I didn’t see anything, so I suspected some issue with your configuration.

Another possibility, perhaps there are multiple log handlers defined. Make sure you are initialising your logging object globally: agent-starter-python/src/agent.py at main · livekit-examples/agent-starter-python · GitHub