Skip to content

Commit

Permalink
debug conninfo
Browse files Browse the repository at this point in the history
  • Loading branch information
BuonOmo committed Sep 5, 2024
1 parent eee50f6 commit ec1c5ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
fail-fast: false
matrix:
# https://ruby-lang.org/en/downloads/branches
ruby: ["3.3", "3.2", "3.1"]
ruby: ["3.3"]
# https://www.postgresql.org/support/versioning/
pg: [12-master, 13-master, 14-master, 15-master, 16-master]
pg: [16-master]
steps:
- name: Set Up Actions
uses: actions/checkout@v4
Expand Down
12 changes: 12 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,15 @@ def reset_spatial_store
end
end
end

conn = SpatialModel.lease_connection.instance_variable_get(:@raw_connection)
$count = conn.conninfo_hash[:port].count(",")+1

TracePoint.trace(:call) do |tp|
conn = SpatialModel.lease_connection.instance_variable_get(:@raw_connection)
count = conn.conninfo_hash[:port].count(",")+1
next if count == $count

$count = count
puts "port(count=#{count}): #{conn.conninfo_hash[:port][0, 100]}"
end

0 comments on commit ec1c5ef

Please sign in to comment.