Rename env vars prefix to ND_

This commit is contained in:
Deluan
2020-01-24 01:29:31 -05:00
parent d48ddacaba
commit bff6f3a4bd
18 changed files with 42 additions and 42 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ type SQLStore struct {
func New() model.DataStore {
once.Do(func() {
dbPath := conf.Sonic.DbPath
dbPath := conf.Server.DbPath
if dbPath == ":memory:" {
dbPath = "file::memory:?cache=shared"
}
@@ -114,7 +114,7 @@ func (db *SQLStore) getOrmer() orm.Ormer {
}
func initORM(dbPath string) error {
verbose := conf.Sonic.LogLevel == "trace"
verbose := conf.Server.LogLevel == "trace"
orm.Debug = verbose
if strings.Contains(dbPath, "postgres") {
driver = "postgres"