Silence needlessly verbose logs.
parent
3f496c483e
commit
c98987577e
|
@ -4,6 +4,8 @@ package bot
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutils"
|
||||
"log"
|
||||
"sync"
|
||||
"testing"
|
||||
|
||||
|
@ -121,5 +123,6 @@ func configLookupHelper(map[string]string) []string {
|
|||
}
|
||||
|
||||
func init() {
|
||||
log.SetOutput(ioutil.Discard)
|
||||
cfg.SetFileListBuilder(configLookupHelper)
|
||||
}
|
||||
|
|
|
@ -4,6 +4,8 @@ package bot
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"sync"
|
||||
"testing"
|
||||
|
@ -122,6 +124,7 @@ func configLookupHelper(map[string]string) []string {
|
|||
}
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
log.SetOutput(ioutil.Discard)
|
||||
cfg.SetFileListBuilder(configLookupHelper)
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue