Navigation Menu

Skip to content

Commit

Permalink
Report details of error to the log
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 17, 2015
1 parent 18ddad0 commit d10f54b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/droonga/plugins/system/absorb_data.rb
Expand Up @@ -80,11 +80,17 @@ def start
end
rescue Exception => exception
@dumper_error_message = exception.to_s
logger.error("failed to process progress",
:error => exception,
:backtrace => exception.backtrace)
on_finish
end
end
rescue Exception => exception
@dumper_error_message = exception.to_s
logger.error("failed to start dump",
:error => exception,
:backtrace => exception.backtrace)
end

on_finish if @dumper_error_message
Expand Down Expand Up @@ -113,6 +119,9 @@ def on_finish
end
rescue Exception => exception
@dumper_error_message = exception.to_s
logger.error("failed to finish dump",
:error => exception,
:backtrace => exception.backtrace)
error(error_name, @dumper_error_message)
end
super
Expand Down

0 comments on commit d10f54b

Please sign in to comment.