lib/god/watch.rb in god-0.5.0 vs lib/god/watch.rb in god-0.6.0

- old
+ new

@@ -121,20 +121,18 @@ before_items += [condition] if condition before_items.each do |b| info = b.send("before_#{action}") if info msg = "#{self.name} before_#{action}: #{info} (#{b.base_name})" - Syslog.debug(msg) - LOG.log(self, :info, msg) + applog(self, :info, msg) end end # log if self.send(action) msg = "#{self.name} #{action}: #{self.send(action).to_s}" - Syslog.debug(msg) - LOG.log(self, :info, msg) + applog(self, :info, msg) end @process.call_action(action) # after @@ -142,11 +140,10 @@ after_items += [condition] if condition after_items.each do |b| info = b.send("after_#{action}") if info msg = "#{self.name} after_#{action}: #{info} (#{b.base_name})" - Syslog.debug(msg) - LOG.log(self, :info, msg) + applog(self, :info, msg) end end end ########################################################################### \ No newline at end of file