Rename SetQueryLoggerFunc to SetQueryLogger
This commit is contained in:
parent
605f1c8e3d
commit
34f84c7170
7 changed files with 15 additions and 15 deletions
|
|
@ -71,7 +71,7 @@ func init() {
|
|||
loggedDebugSQL = statement.DebugSql()
|
||||
})
|
||||
|
||||
postgres.SetQueryLoggerFunc(func(ctx context.Context, info postgres.QueryInfo) {
|
||||
postgres.SetQueryLogger(func(ctx context.Context, info postgres.QueryInfo) {
|
||||
queryInfo = info
|
||||
callerFile, callerLine, callerFunction = info.Caller()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue