Navigation Menu

Skip to content

Commit

Permalink
Output error information to the log while dump
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 15, 2015
1 parent bb01f65 commit deeedd3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/droonga/plugins/system/absorb_data.rb
Expand Up @@ -53,8 +53,13 @@ def start
on_finish
logger.trace("start: finish")
end
dumper.on_progress = lambda do |message|
logger.trace("dump progress",
:message => message)
end
dumper.on_error = lambda do |error|
logger.error(error)
logger.error("unexpected error while dump",
:error => error)
end

@previous_report_time = Time.now
Expand Down

0 comments on commit deeedd3

Please sign in to comment.