Skip to content

Commit dc7b3fd

Browse files
Nevins Bartolomeoph
authored andcommitted
minor grammer fixes
Fixes #102
1 parent 586210b commit dc7b3fd

File tree

1 file changed

+4
-4
lines changed
  • lib/logstash/outputs

1 file changed

+4
-4
lines changed

lib/logstash/outputs/s3.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class LogStash::Outputs::S3 < LogStash::Outputs::Base
162162
# The default strategy is to check for both size and time, the first one to match will rotate the file.
163163
config :rotation_strategy, :validate => ["size_and_time", "size", "time"], :default => "size_and_time"
164164

165-
# The common use case is to define permission on the root bucket and give Logstash full access to write his logs.
165+
# The common use case is to define permission on the root bucket and give Logstash full access to write its logs.
166166
# In some circonstances you need finer grained permission on subfolder, this allow you to disable the check at startup.
167167
config :validate_credentials_on_root_bucket, :validate => :boolean, :default => true
168168

@@ -185,7 +185,7 @@ def register
185185
end
186186

187187
if @time_file.nil? && @size_file.nil? || @size_file == 0 && @time_file == 0
188-
raise LogStash::ConfigurationError, "Logstash need at `time_file` or `size_file` greather than 0"
188+
raise LogStash::ConfigurationError, "The S3 plugin must have at least one of time_file or size_file set to a value greater than 0"
189189
end
190190

191191
@file_repository = FileRepository.new(@tags, @encoding, @temporary_directory)
@@ -216,7 +216,7 @@ def multi_receive_encoded(events_and_encoded)
216216

217217
begin
218218
@file_repository.get_file(prefix_key) { |file| file.write(encoded) }
219-
# The output should stop accepting new events coming in, since he cannot do anything with them anymore.
219+
# The output should stop accepting new events coming in, since it cannot do anything with them anymore.
220220
# Log the error and rethrow it.
221221
rescue Errno::ENOSPC => e
222222
@logger.error("S3: No space left in temporary directory", :temporary_directory => @temporary_directory)
@@ -351,7 +351,7 @@ def restore_from_crash
351351
key_parts = Pathname.new(file).relative_path_from(temp_folder_path).to_s.split(::File::SEPARATOR)
352352
temp_file = TemporaryFile.new(key_parts.slice(1, key_parts.size).join("/"), ::File.open(file, "r"))
353353

354-
@logger.debug("Recover from crash and uploading", :file => temp_file.path)
354+
@logger.debug("Recovering from crash and uploading", :file => temp_file.path)
355355
@crash_uploader.upload_async(temp_file, :on_complete => method(:clean_temporary_file))
356356
end
357357
end

0 commit comments

Comments
 (0)