bbk-utils 1.1.0.274232 → 1.1.1.275386
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/bbk/utils/log_formatter.rb +7 -3
- data/lib/bbk/utils/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: d5b57c20cde397113b0bd693a0d807f67a589d38950a70a2d19bd256ddf001cf
|
4
|
+
data.tar.gz: 6dc84e2187add6bf9ae4e1fd73fa1c972f37da608cfbb2fd552a75ecfcb67792
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04c35f3b0aa31095c6c5f01237892e004e09b6969ba39406ec5a5380b8e8cac3227d6ba75c02169db92eb5b7d42d4cbe4afcae343fcb8b79c662daa38c858ac5
|
7
|
+
data.tar.gz: 7bb51f432ca43270d98e32216aaaf6fad3089e10a4be21342495bd52bfe818664bbcf3b022385c5eb2407c5c891c1079f9b0538311d63e2da97d9e379aacd566
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bbk-utils (1.1.
|
4
|
+
bbk-utils (1.1.1.275386)
|
5
5
|
activesupport (>= 7.0)
|
6
6
|
russian
|
7
7
|
|
@@ -62,7 +62,7 @@ GEM
|
|
62
62
|
launchy (2.5.0)
|
63
63
|
addressable (~> 2.7)
|
64
64
|
logger (1.6.1)
|
65
|
-
minitest (5.25.
|
65
|
+
minitest (5.25.2)
|
66
66
|
mutex_m (0.3.0)
|
67
67
|
parallel (1.21.0)
|
68
68
|
parser (3.0.3.1)
|
@@ -5,7 +5,6 @@ require 'logger'
|
|
5
5
|
module BBK
|
6
6
|
module Utils
|
7
7
|
class LogFormatter < ::Logger::Formatter
|
8
|
-
|
9
8
|
FORMAT = "%5s [%sUTC #%d] (%s)[%s]: %s\n"
|
10
9
|
def call(severity, time, progname, msg)
|
11
10
|
line = msg2str(msg).gsub("\n", '\\n')
|
@@ -13,10 +12,15 @@ module BBK
|
|
13
12
|
end
|
14
13
|
|
15
14
|
def thread_id
|
16
|
-
[
|
15
|
+
[
|
16
|
+
Thread.current.object_id.to_s,
|
17
|
+
Thread.current.name || thread_name_from_main
|
18
|
+
].compact.join('@')
|
17
19
|
end
|
18
20
|
|
21
|
+
def thread_name_from_main
|
22
|
+
Thread.current[:bbk_thread_id] ||= "#{Thread.main.name}-#{Thread.current.object_id}" if Thread.main.name
|
23
|
+
end
|
19
24
|
end
|
20
25
|
end
|
21
26
|
end
|
22
|
-
|
data/lib/bbk/utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bbk-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1.275386
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samoilenko Yuri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|