Silence needlessly verbose logs.

configurable-file-paths
Robert Gerus 2015-11-18 19:12:54 +01:00
parent 3f496c483e
commit c98987577e
2 changed files with 6 additions and 0 deletions

View File

@ -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)
}

View File

@ -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())
}