Skip to content

Commit 70daa6b

Browse files
Improve tracing
1 parent 67b2d91 commit 70daa6b

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,6 @@ jobs:
8282
( sudo ./caddy run --config .github/workflows/Caddyfile 2>&1 | tee caddy.log ) &
8383
CADDY_PID=$!
8484
echo "CADDY_PID=$CADDY_PID" >> "$GITHUB_ENV"
85-
86-
# Start lock logger
87-
( for i in {1..30}; do
88-
echo "----- $(date) -----"
89-
psql "postgres://postgres:@localhost:5432/postgres" -c "TABLE caddy_locks;" || true
90-
sleep 0.2
91-
done ) &
9285
9386
# Wait for the test domain to be ready on 443
9487
for i in {1..30}; do

storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ type tracer struct {
123123
}
124124

125125
func (t tracer) TraceQueryStart(ctx context.Context, conn *pgx.Conn, data pgx.TraceQueryStartData) context.Context {
126-
t.logger.Debug("query start", zap.String("sql", data.SQL), zap.Any("args", data.Args))
126+
t.logger.Debug("query start", zap.String("sql", strings.TrimSpace(data.SQL)), zap.Any("args", data.Args))
127127
return ctx
128128
}
129129

0 commit comments

Comments
 (0)