summaryrefslogtreecommitdiff
path: root/lib/oxidized/worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/worker.rb')
-rw-r--r--lib/oxidized/worker.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/oxidized/worker.rb b/lib/oxidized/worker.rb
index adbaa0e..6966322 100644
--- a/lib/oxidized/worker.rb
+++ b/lib/oxidized/worker.rb
@@ -23,8 +23,12 @@ module Oxidized
node.last = job
@jobs.duration job.time
if job.status == :success
+ msg = "update #{node.name}"
+ msg += " from #{node.from}" if node.from
+ msg += " with message '#{node.msg}'" if node.msg
node.output.new.update node.name, job.config,
- :msg => "update #{node.name}", :group => node.group
+ :msg => msg, :user => node.user, :group => node.group
+ node.reset
else
Log.warn "#{node.name} status #{job.status}"
end