pgtk 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pgtk/pool.rb +6 -1
- data/lib/pgtk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b39b7d664d73db65be5fd875687feb710866036369c66391e7a2a8c3e987f64
|
4
|
+
data.tar.gz: ec879d6ba51f12583820563ffcc79596852c47352cbf3699911db39332a488d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c3635df8dcb98143adc6804ca4ecf8e229191d0b89d3436a591cfc969167d85907bdf2cd8bb74734e5000d823756fc9011c5bda5c7262fe0a32ac837320c2d0
|
7
|
+
data.tar.gz: 8b285bc7d80b5dbfbf8fe272755ea7de71cc717a36a76ff3ca218b7952143afb322c6925cb4894043dff6fda2a42ca4f8086b1f05f7e299de65b67b7f9bc27a3
|
data/lib/pgtk/pool.rb
CHANGED
@@ -148,7 +148,12 @@ class Pgtk::Pool
|
|
148
148
|
rows
|
149
149
|
end
|
150
150
|
end
|
151
|
-
|
151
|
+
lag = start - Time.now
|
152
|
+
if lag < 1
|
153
|
+
@log.debug("#{sql}: #{lag.round}ms / #{@conn.object_id}")
|
154
|
+
else
|
155
|
+
@log.info("#{sql}: #{format('%.02f', lag)}s")
|
156
|
+
end
|
152
157
|
out
|
153
158
|
end
|
154
159
|
end
|
data/lib/pgtk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pgtk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backtrace
|