Using verbosity constant

This commit is contained in:
Pavel Shevaev 2022-11-03 14:46:25 +03:00
parent 10633925a8
commit ee4d03e658
1 changed files with 3 additions and 1 deletions

View File

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