mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-01 19:56:45 +00:00

* Remove Subsystems map and replace with RegisterSubSystem * Clean up the logger * Fix LOGFLAGS and make LongFile work correctly * Parallelize the logger backend * More logger cleanup * Initialize and close the logger backend wherever it's needed * Move the location where the backend is closed, also print the log if it panics while writing * Add TestMain to reachability manager tests to preserve the same log level * Fix review comments Co-authored-by: Svarog <feanorr@gmail.com>
17 lines
264 B
Go
17 lines
264 B
Go
package reachabilitymanager_test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/kaspanet/kaspad/infrastructure/logger"
|
|
)
|
|
|
|
const logLevel = logger.LevelWarn
|
|
|
|
func TestMain(m *testing.M) {
|
|
logger.SetLogLevels(logLevel)
|
|
logger.InitLogStdout(logLevel)
|
|
os.Exit(m.Run())
|
|
}
|