appydays 0.2.1 → 0.3.0

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: 91b171c7afb39adf17de30701ad3047c6d5edb080e512e8a2a1596f88c1c8b2e
4
- data.tar.gz: 2020c7ec844d50ef4cbdfeb9a25bde44ac5d85d5d780e6736e6320af17a4771b
3
+ metadata.gz: 6f235dd9ffc485d78888e9cc325dc090dba1f40b8cf4a2cb9e24df2074149520
4
+ data.tar.gz: a34bed5f98cf79bad2401c94b254a41deb28f7165fb86e5378ec96bec8913b9d
5
5
  SHA512:
6
- metadata.gz: f9f2f5dd7804b5a166451109432c253e8fd9c7fbaf2179a424b00d4448e0f0f3598029e0f5711d9c7cfed937e2f84f62e1850aae5c00866904b2acdd81be5c91
7
- data.tar.gz: 17a99175b776829772f1744cd740fb6ed396d171e7c8735f7c380c323d2cfc0dbab3cdf1fed890daf9b3bf371bfc26f982ceb5b5194a2ecb0980ae0fa0dad46c
6
+ metadata.gz: 4e62429beede3533e76c7f245ca3b653c5b702f5fbd64571f7381a49c6975043e8d1c8a37f60a47c3aed7422ec83a8408da66852a47ca3c28840852b2e3feac0
7
+ data.tar.gz: edb5ebdb0c6b073e8b6c8d4fdbd14d548592fbea901a6e6c0cfc7ef785231158ce94ff8bbbd5496637414c17239e47dd633e65db325c5316e8889d95d07fd564
@@ -17,7 +17,11 @@ class Sequel::Database
17
17
  log_each(
18
18
  :info,
19
19
  proc { args ? "#{message}; #{args.inspect}" : message },
20
- proc { ["sequel_log", {message: message, args: args}] },
20
+ proc do
21
+ o = {message: message}
22
+ o[:args] = args unless args.nil?
23
+ ["sequel_log", o]
24
+ end,
21
25
  )
22
26
  end
23
27
 
@@ -28,7 +32,7 @@ class Sequel::Database
28
32
  log_each(
29
33
  lwd && (duration >= lwd) ? :warn : sql_log_level,
30
34
  proc { "(#{'%0.6fs' % duration}) #{message}" },
31
- proc { ["sequel_query", {duration: duration, query: message}] },
35
+ proc { ["sequel_query", {duration: duration * 1000, query: message}] },
32
36
  )
33
37
  end
34
38
 
@@ -43,10 +43,10 @@ class Appydays::Loggable::SidekiqJobLogger < Sidekiq::JobLogger
43
43
  yield
44
44
  duration = self.elapsed(start)
45
45
  log_method = duration >= self.slow_job_seconds ? :warn : :info
46
- self.logger.send(log_method, "job_done", duration: duration)
46
+ self.logger.send(log_method, "job_done", duration: duration * 1000)
47
47
  rescue StandardError
48
48
  # Do not log the error since it is probably a sidekiq retry error
49
- self.logger.error("job_fail", duration: self.elapsed(start))
49
+ self.logger.error("job_fail", duration: self.elapsed(start) * 1000)
50
50
  raise
51
51
  end
52
52
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appydays
4
- VERSION = "0.2.1"
4
+ VERSION = "0.3.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appydays
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lithic Tech
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-01 00:00:00.000000000 Z
11
+ date: 2022-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv