Navigation Menu

Skip to content

Commit

Permalink
Fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 13, 2017
1 parent 027b202 commit c76a2a6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/fluent/plugin/in_groonga.rb
Expand Up @@ -206,9 +206,9 @@ def on_connect
@repeater = @input.create_repeater(self)
@repeater.on_connect_failed do
@input.log.error("[input][groonga][connect][error] " +
"failed to connect to Groonga:",
:real_host => @input.real_host,
:real_port => @input.real_port)
"failed to connect to Groonga:",
:real_host => @input.real_host,
:real_port => @input.real_port)
close
end
@request_handler = RequestHandler.new(@input, @repeater)
Expand All @@ -220,14 +220,14 @@ def on_read(data)
@request_handler << data
rescue HTTP::Parser::Error, URI::InvalidURIError
@input.log.error("[input][groonga][request][error] " +
"failed to parse HTTP request:",
:error => "#{$!.class}: #{$!}")
"failed to parse HTTP request:",
:error => "#{$!.class}: #{$!}")
@input.log.error_backtrace
reply_error_response("400 Bad Request")
rescue
@input.log.error("[input][groonga][request][error] " +
"failed to handle HTTP request:",
:error => "#{$!.class}: #{$!}")
"failed to handle HTTP request:",
:error => "#{$!.class}: #{$!}")
@input.log.error_backtrace
reply_error_response("500 Internal Server Error")
end
Expand All @@ -238,8 +238,8 @@ def write_back(data)
@response_handler << data
rescue
@input.log.error("[input][groonga][response][error] " +
"failed to handle HTTP response from Groonga:",
:error => "#{$!.class}: #{$!}")
"failed to handle HTTP response from Groonga:",
:error => "#{$!.class}: #{$!}")
@input.log.error_backtrace
reply_error_response("500 Internal Server Error")
return
Expand Down

0 comments on commit c76a2a6

Please sign in to comment.