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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13fb64166a42e15fcc78444b4ea01a3b8fcd9039272d5c7fa98a8dc72b879c57
4
- data.tar.gz: 80cd807f7fa20fa256ffba82e033673a58dc9cf453bf4cb5387a8d591cd31206
3
+ metadata.gz: 9b39b7d664d73db65be5fd875687feb710866036369c66391e7a2a8c3e987f64
4
+ data.tar.gz: ec879d6ba51f12583820563ffcc79596852c47352cbf3699911db39332a488d9
5
5
  SHA512:
6
- metadata.gz: 2ea2debe02d73ad8ac645b40e184fac2f03f575d05dc3bd099a090233d1a380b65f158f909d77bd51281a32a4b280b7ccf7891f259995c0f3c8e67c10188de88
7
- data.tar.gz: d5d4c3a4d664ac09801f3464f2eefeb6d28a257717f0ee63d88f27b7b3bd6b9348de0a9f35e9daabe203c8428830327961a70690d5eeae6515169a6c24cfe6fe
6
+ metadata.gz: 8c3635df8dcb98143adc6804ca4ecf8e229191d0b89d3436a591cfc969167d85907bdf2cd8bb74734e5000d823756fc9011c5bda5c7262fe0a32ac837320c2d0
7
+ data.tar.gz: 8b285bc7d80b5dbfbf8fe272755ea7de71cc717a36a76ff3ca218b7952143afb322c6925cb4894043dff6fda2a42ca4f8086b1f05f7e299de65b67b7f9bc27a3
@@ -148,7 +148,12 @@ class Pgtk::Pool
148
148
  rows
149
149
  end
150
150
  end
151
- @log.debug("#{sql}: #{(start - Time.now).round}ms / #{@conn.object_id}")
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
@@ -28,5 +28,5 @@ require_relative '../pgtk'
28
28
  # License:: MIT
29
29
  module Pgtk
30
30
  # Current version of the library.
31
- VERSION = '0.7.1'
31
+ VERSION = '0.7.2'
32
32
  end
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.1
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-10 00:00:00.000000000 Z
11
+ date: 2019-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace