Navigation Menu

Skip to content

Commit

Permalink
Indicate target node for logs of EngineNode
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 7, 2015
1 parent 82ec863 commit e902dbf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/droonga/engine_node.rb
Expand Up @@ -25,8 +25,9 @@ class EngineNode
attr_reader :name

def initialize(name, state, loop, params)
logger.trace("initialize: start")
@name = name
logger.trace("initialize: start")

@state = state
@sender_node_metadata = params[:metadata]

Expand Down Expand Up @@ -224,7 +225,7 @@ def output(message, destination)
end

def log_tag
"[#{Process.ppid}] engine-node"
"[#{Process.ppid}] engine-node: #{@name}"
end
end
end

0 comments on commit e902dbf

Please sign in to comment.