diff options
author | ytti <saku@ytti.fi> | 2015-06-10 15:36:29 +0300 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2015-06-10 15:36:29 +0300 |
commit | 608044069f2ad369715521c588a9a88f19f245fc (patch) | |
tree | 355e3c1be493f880e8f2d046653bb1f712e79b0a /lib/oxidized/worker.rb | |
parent | cf2b493602045a7b3aad95ea329b1435d184d4e8 (diff) | |
parent | 6523bde25505cf05dce0c72b8f01a398f444f10c (diff) |
Merge pull request #129 from FlorianDoublet/updateLog
Add log for update at /var/log/oxidized-update for git output
Diffstat (limited to 'lib/oxidized/worker.rb')
-rw-r--r-- | lib/oxidized/worker.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/oxidized/worker.rb b/lib/oxidized/worker.rb index 7ed70ac..6bb2a22 100644 --- a/lib/oxidized/worker.rb +++ b/lib/oxidized/worker.rb @@ -37,8 +37,10 @@ module Oxidized msg = "update #{node.name}" msg += " from #{node.from}" if node.from msg += " with message '#{node.msg}'" if node.msg - node.output.new.store node.name, job.config, + if node.output.new.store node.name, job.config, :msg => msg, :user => node.user, :group => node.group + Log.info "Configuration updated for #{node.group}/#{node.name}" + end node.reset else msg = "#{node.name} status #{job.status}" |