mirror of https://github.com/status-im/op-geth.git
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. |
||
---|---|---|
.. | ||
example_test.go | ||
loggers.go | ||
loggers_test.go |