feat(loggin): disable logging by default so unit tests are not full of logging

This commit is contained in:
Torkel Ödegaard
2016-06-11 11:38:25 +02:00
parent 1584dac00a
commit 086b59483e
6 changed files with 7 additions and 13 deletions

View File

@@ -22,6 +22,7 @@ var loggersToClose []DisposableHandler
func init() {
loggersToClose = make([]DisposableHandler, 0)
Root = log15.Root()
Root.SetHandler(log15.DiscardHandler())
}
func New(logger string, ctx ...interface{}) Logger {