Skip to content

Commit

Permalink
storage_local: Fix incorrect validation clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmo0920 committed Jun 16, 2016
1 parent 01a1708 commit 0801089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fluent/plugin/storage_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def configure(conf)
else # @_plugin_id_configured is true
raise NotImplementedError, "implement this feature later with system_config"
## TODO: get process-wide directory for plugin storage, and generate path for this plugin storage instance
# path =
# path =
end

if !@on_memory
Expand All @@ -58,7 +58,7 @@ def configure(conf)
raise Fluent::ConfigError, "Unexpected error: failed to read data from plugin storage file: '#{@path}'"
end
else
raise Fluent::ConfigError, "Directory is not writable for plugin storage file '#{@path}'" unless File.writable?(@path)
raise Fluent::ConfigError, "Directory is not writable for plugin storage file '#{dir}'" unless File.writable?(dir)
end
end
end
Expand Down

0 comments on commit 0801089

Please sign in to comment.