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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f235dd9ffc485d78888e9cc325dc090dba1f40b8cf4a2cb9e24df2074149520
|
4
|
+
data.tar.gz: a34bed5f98cf79bad2401c94b254a41deb28f7165fb86e5378ec96bec8913b9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
|
data/lib/appydays/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|