Navigation Menu

Skip to content

Commit

Permalink
in: fix "no method error"
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 13, 2017
1 parent c76a2a6 commit d41eb4f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/fluent/plugin/in_groonga.rb
Expand Up @@ -169,13 +169,17 @@ def emit(command, params)
params)
end

def log
@input_plugin.log
end

private
def run
@loop.run
rescue
@input_plugin.log.error("[input][groonga][error] unexpected error",
:error => "#{$!.class}: #{$!}")
@input_plugin.log.error_backtrace
log.error("[input][groonga][error] unexpected error",
:error => "#{$!.class}: #{$!}")
log.error_backtrace
end

def emit_command?(command)
Expand Down

0 comments on commit d41eb4f

Please sign in to comment.