We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d4b3ec commit 8defa02Copy full SHA for 8defa02
1 file changed
tracelog/tracelog.go
@@ -94,7 +94,20 @@ func LogLevelFromString(s string) (LogLevel, error) {
94
func logQueryArgs(args []any) []any {
95
logArgs := make([]any, 0, len(args))
96
97
- for _, a := range args {
+ for i, a := range args {
98
+ if i == 0 {
99
+ switch a.(type) {
100
+ case pgx.QueryResultFormats:
101
+ continue
102
+ case pgx.QueryResultFormatsByOID:
103
104
+ case pgx.QueryExecMode:
105
106
+ case pgx.QueryRewriter:
107
108
+ }
109
110
+
111
switch v := a.(type) {
112
case []byte:
113
if len(v) < 64 {
@@ -112,8 +125,6 @@ func logQueryArgs(args []any) []any {
125
a = fmt.Sprintf("%s (truncated %d bytes)", v[:l], len(v)-l)
126
}
114
127
115
- case pgx.QueryResultFormatsByOID:
116
- continue
117
128
118
129
logArgs = append(logArgs, a)
119
130
0 commit comments