lib/ruote/log/test_logger.rb in ruote-2.1.1 vs lib/ruote/log/test_logger.rb in ruote-2.1.2
- old
+ new
@@ -36,15 +36,15 @@
def initialize (context)
@context = context
- if @context.respond_to?(:worker)
+ if @context.worker
#
# this is a worker context, DO log
#
@context.worker.subscribe(:all, self)
- else
+ #else
#
# this is not a worker context, DO NOT log, but be ready to
# be queried
#
end