Skip to content

Commit

Permalink
Only set LogSendErrors option if collectd version >= 5.4.
Browse files Browse the repository at this point in the history
LogSendErrors was introduced in 5.4 and earlier versions complain about
'Invalid configration option: LogSendErrors'.
  • Loading branch information
danielspang committed Mar 12, 2015
1 parent 59ab73e commit 3f60606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/plugin/write_graphite.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
StoreRates <%= @storerates %>
AlwaysAppendDS <%= @alwaysappendds %>
SeparateInstances <%= @separateinstances %>
LogSendErrors <%= @logsenderrors %>
<% if @collectd_version and (scope.function_versioncmp([@collectd_version, '5.4']) >= 0) -%>
LogSendErrors <%= @logsenderrors %>
Protocol "<%= @protocol %>"
<% end -%>
</Carbon>
Expand Down

0 comments on commit 3f60606

Please sign in to comment.