Skip to content

Commit 4776813

Browse files
committed
Clearer name for the current log file
1 parent 2073b90 commit 4776813

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/logstash/outputs/file.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ def validate_path
9292
def receive(event)
9393
return unless output?(event)
9494

95-
log_path = generate_filepath(event)
95+
file_output_path = generate_filepath(event)
9696

97-
if interpolated_path? && !inside_file_root?(log_path)
97+
if interpolated_path? && !inside_file_root?(file_output_path)
9898
tag_as_filepath_failure(event)
99-
log_path = @failure_path
99+
file_output_path = @failure_path
100100
end
101101

102102
output = format_message(event)
103-
write_event(log_path, output)
103+
write_event(file_output_path, output)
104104
end # def receive
105105

106106
private

0 commit comments

Comments
 (0)