1+ require 'concurrent/concern/logging'
12require 'concurrent/executors'
23
34module Concurrent
@@ -11,7 +12,7 @@ module Actor
1112 # that would eat up all threads in task pool and deadlock
1213 class Core < Synchronization ::Object
1314 include TypeCheck
14- include Concurrent ::Logging
15+ include Concern ::Logging
1516
1617 # @!attribute [r] reference
1718 # Reference to this actor which can be safely passed around.
@@ -44,7 +45,7 @@ class Core < Synchronization::Object
4445 # @option opts [CompletableFuture, nil] initialized, if present it'll be set or failed after {Context} initialization
4546 # @option opts [Reference, nil] parent **private api** parent of the actor (the one spawning )
4647 # @option opts [Proc, nil] logger a proc accepting (level, progname, message = nil, &block) params,
47- # can be used to hook actor instance to any logging system, see {Concurrent::Logging}
48+ # can be used to hook actor instance to any logging system, see {Concurrent::Concern:: Logging}
4849 # @param [Proc] block for class instantiation
4950 def initialize ( opts = { } , &block )
5051 super ( &nil )
@@ -127,7 +128,7 @@ def schedule_execution
127128 end
128129
129130 def broadcast ( public , event )
130- log Logging :: DEBUG , "event: #{ event . inspect } (#{ public ? 'public' : 'private' } )"
131+ log DEBUG , "event: #{ event . inspect } (#{ public ? 'public' : 'private' } )"
131132 @first_behaviour . on_event ( public , event )
132133 end
133134
0 commit comments