after_do-logging 0.3.0 → 0.4
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d972efb8659f423dbe0357aae2b6c5daf746c17d
|
4
|
+
data.tar.gz: 71d18c67c1f33f71871bbb2bd555b4e5b83d1d8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d74771e7944c473a4bea4cc91dabef78187baed97846ecd8c616e04f8bd0db25f2c3a8589b93bffe2b43f29283effec5081f8bfc72f1d4ba5ade015a0f767b97
|
7
|
+
data.tar.gz: 428cc444417de3c27acd011a6e35ceeadaf303d78855bb3ccc560647c0ff40ef663914a6ff868832ace9b34ab21d6bb86fb7d7987e6551f59c57e3fdb6ba50eb
|
@@ -30,12 +30,12 @@ module AfterDo
|
|
30
30
|
|
31
31
|
def log_step(prefix, object, method, args)
|
32
32
|
arg_text = args.map(&:inspect).join(', ')
|
33
|
-
msg = "#{prefix}#{id(object)}: #{method}(#{arg_text})"
|
33
|
+
msg = "[Thread=#{Thread.current.object_id}]#{prefix}#{id(object)}: #{method}(#{arg_text})"
|
34
34
|
logger.info(msg)
|
35
35
|
end
|
36
36
|
|
37
37
|
def id(object)
|
38
|
-
"[
|
38
|
+
"[id=#{object.id}]" if object.respond_to?(:id)
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: after_do-logging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafael da Silva
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: after_do
|