Using verbosity constant
This commit is contained in:
parent
10633925a8
commit
ee4d03e658
|
@ -13,11 +13,13 @@ import (
|
||||||
"github.com/go-logr/stdr"
|
"github.com/go-logr/stdr"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const verbosity = 0
|
||||||
|
|
||||||
var logger = stdr.New(log.New(os.Stdout, "", log.Lshortfile))
|
var logger = stdr.New(log.New(os.Stdout, "", log.Lshortfile))
|
||||||
|
|
||||||
func getSettings() db.Settings {
|
func getSettings() db.Settings {
|
||||||
//TODO: use ENV settings as well
|
//TODO: use ENV settings as well
|
||||||
//stdr.SetVerbosity(2)
|
stdr.SetVerbosity(verbosity)
|
||||||
return db.Settings{Host: "127.0.0.1", Port: "3306", User: "root", Pass: "test", Name: "tests", Prefix: "tests"}
|
return db.Settings{Host: "127.0.0.1", Port: "3306", User: "root", Pass: "test", Name: "tests", Prefix: "tests"}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue