fix: synchronize logs, buffer events channel, exit on goroutine failure

- Add mutex to prevent interleaved log output from concurrent goroutines
- Make logMsg delegate to logPrintf for consistent synchronization
- Buffer events channel to size 1 with select/drop when full
- Close events channel on ListenForTrainer exit so process terminates
This commit is contained in:
2026-05-27 00:36:06 +02:00
parent 091067593b
commit 4949beae3e
4 changed files with 14 additions and 3 deletions
BIN
View File
Binary file not shown.