mirror of
https://github.com/status-im/op-geth.git
synced 2025-01-30 00:15:28 +00:00
fd9b03a431
Rather than spawning a new goroutine for each message, run each log system in a dedicated goroutine. Ensure that logging is still asynchronous by using a per-system buffer (currently 500 messages). If it overflows all logging will hang, but that's better than spawning indefinitely many goroutines.