evt-component_host 0.2.0.0 → 0.2.0.1
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: be5b6cd2bf6adc96bf4640db14f6c4aa0742c0ba4d2b3be88f65dcf1e05529a3
|
4
|
+
data.tar.gz: 4ac529e35f392434630af9eb918352dd9331acf1df142ce8ca33bffecc0db396
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bf25e2b2127479cb907c36e024c755da1da8e8f2c1c6b3a2465c5539089418013cce1b9e5d06d945e89b59c9e1345747465235cdf059256374faf758b53e088
|
7
|
+
data.tar.gz: 8a8c02d422a0ba562417bef92bb66bffa67d3e7952114f2d1ea18f34fa1d07b759bf564eeb6941301ba26aca637e8460d42a3acd191ed5bea724b90ffe0952aa
|
@@ -7,7 +7,7 @@ module ComponentHost
|
|
7
7
|
host.instance_exec host, &block
|
8
8
|
|
9
9
|
host.start do
|
10
|
-
logger.info "Started component: #{component_name} (ProcessID: #{::Process.pid})"
|
10
|
+
logger.info(tags: [:component, :start, :lifecycle]) { "Started component: #{component_name} (ProcessID: #{::Process.pid})" }
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
data/lib/component_host/host.rb
CHANGED
@@ -43,7 +43,7 @@ module ComponentHost
|
|
43
43
|
|
44
44
|
send.(message, supervisor.address)
|
45
45
|
|
46
|
-
logger.info { "Handled TSTP signal (MessageName: #{message.message_name}, SupervisorAddress: #{supervisor.address.id})" }
|
46
|
+
logger.info(tag: :signal) { "Handled TSTP signal (MessageName: #{message.message_name}, SupervisorAddress: #{supervisor.address.id})" }
|
47
47
|
end
|
48
48
|
|
49
49
|
signal.trap 'CONT' do
|
@@ -51,7 +51,7 @@ module ComponentHost
|
|
51
51
|
|
52
52
|
send.(message, supervisor.address)
|
53
53
|
|
54
|
-
logger.info { "Handled CONT signal (MessageName: #{message.message_name}, SupervisorAddress: #{supervisor.address.id})" }
|
54
|
+
logger.info(tag: :signal) { "Handled CONT signal (MessageName: #{message.message_name}, SupervisorAddress: #{supervisor.address.id})" }
|
55
55
|
end
|
56
56
|
|
57
57
|
signal.trap 'INT' do
|
@@ -59,7 +59,7 @@ module ComponentHost
|
|
59
59
|
|
60
60
|
send.(message, supervisor.address)
|
61
61
|
|
62
|
-
logger.info { "Handled INT signal (MessageName: #{message.message_name}, SupervisorAddress: #{supervisor.address.id})" }
|
62
|
+
logger.info(tag: :signal) { "Handled INT signal (MessageName: #{message.message_name}, SupervisorAddress: #{supervisor.address.id})" }
|
63
63
|
end
|
64
64
|
|
65
65
|
signal.trap 'TERM' do
|
@@ -5,17 +5,17 @@ module ComponentHost
|
|
5
5
|
include ComponentHost::Log::Dependency
|
6
6
|
|
7
7
|
handle Actor::Messages::ActorStarted do |msg|
|
8
|
-
logger.debug "Actor started (Address: #{msg.address.id}, Actor: #{msg.actor.digest})"
|
8
|
+
logger.debug(tags: [:actor, :lifecycle, :start]) { "Actor started (Address: #{msg.address.id}, Actor: #{msg.actor.digest})" }
|
9
9
|
end
|
10
10
|
|
11
11
|
handle Actor::Messages::ActorStopped do |msg|
|
12
|
-
logger.debug "Actor stopped (Address: #{msg.address.id}, Actor: #{msg.actor.digest})"
|
12
|
+
logger.debug(tags: [:actor, :lifecycle, :stop]) { "Actor stopped (Address: #{msg.address.id}, Actor: #{msg.actor.digest})" }
|
13
13
|
end
|
14
14
|
|
15
15
|
handle Actor::Messages::ActorCrashed do |msg|
|
16
16
|
error = msg.error
|
17
17
|
|
18
|
-
logger.error "Error raised (ErrorClass: #{error.class.name}, Actor: #{msg.actor.digest}, Message: #{error.message.inspect})"
|
18
|
+
logger.error(tags: [:actor, :lifecycle, :stop, :crash]) { "Error raised (ErrorClass: #{error.class.name}, Actor: #{msg.actor.digest}, Message: #{error.message.inspect})" }
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-component_host
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.
|
4
|
+
version: 0.2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ntl-actor
|