lib/rundock/node.rb in rundock-0.4.15 vs lib/rundock/node.rb in rundock-0.4.16

- old
+ new

@@ -18,11 +18,11 @@ @operations = [] unless @operations @operations << ope end def run - Logger.formatter.onrec = true + Logger.formatter.on_rec Logger.debug("run node: #{@name}") Logger.warn("no operation running: #{@name}") if @operations.blank? node_attributes = [] @@ -37,9 +37,9 @@ @hooks.each do |h| Logger.debug("run hook: #{h.name}") h.hook(node_attributes, log_buffer) end - Logger.formatter.onrec = false + Logger.formatter.off_rec end end end