revert InitModuleDB pattern, back to single ModuleDB func
This commit is contained in:
@@ -76,7 +76,7 @@ type _postgresLogger struct{}
|
||||
func (_postgresLogger) InitLogger() {
|
||||
postgres.SetQueryLogger(func(ctx context.Context, queryInfo postgres.QueryInfo) {
|
||||
_, args := queryInfo.Statement.Sql()
|
||||
dbx.ModuleDB().Logger().Debug(
|
||||
dbxshared.DBModule.Logger().Debug(
|
||||
"Executed SQL query",
|
||||
"args", args,
|
||||
"duration", queryInfo.Duration,
|
||||
|
||||
Reference in New Issue
Block a user