YUKI Hiroshi
yuki****@clear*****
Tue Apr 21 09:39:47 JST 2015
ありがとうございます!
Kouhei Sutou wrote:
>> + logger.error("failed to process progress",
>> + :error => exception,
>> + :backtrace => exception.backtrace)
>
> logger.exception(message, exception)というのがあるので、それ
> を使うといいですよ。
>
> In <d10f54bb2c1a998a2677bab28dcb38cb5611687e �� jenkins.clear-code.com>
> "[Groonga-commit] droonga/droonga-engine �� d10f54b [master] Report details of error to the log" on Fri, 17 Apr 2015 22:41:35 +0900,
> YUKI Hiroshi <null+groonga �� clear-code.com> wrote:
>
>> YUKI Hiroshi 2015-04-17 22:41:35 +0900 (Fri, 17 Apr 2015)
>>
>> New Revision: d10f54bb2c1a998a2677bab28dcb38cb5611687e
>> https://github.com/droonga/droonga-engine/commit/d10f54bb2c1a998a2677bab28dcb38cb5611687e
>>
>> Message:
>> Report details of error to the log
>>
>> Modified files:
>> lib/droonga/plugins/system/absorb_data.rb
>>
>> Modified: lib/droonga/plugins/system/absorb_data.rb (+9 -0)
>> ===================================================================
>> --- lib/droonga/plugins/system/absorb_data.rb 2015-04-17 18:39:54 +0900 (06a55ed)
>> +++ lib/droonga/plugins/system/absorb_data.rb 2015-04-17 22:41:35 +0900 (ea02f8f)
>> @@ -80,11 +80,17 @@ module Droonga
>> 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
>> @@ -113,6 +119,9 @@ module Droonga
>> 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
>
> _______________________________________________
> Groonga-commit mailing list
> Groonga-commit �� lists.sourceforge.jp
> http://lists.sourceforge.jp/mailman/listinfo/groonga-commit
>
--
結城 洋志 <YUKI Hiroshi>
E-mail: yuki �� clear-code.com
株式会社クリアコード
〒170-0005 東京都豊島区南大塚3-29-9
中野ビル3階
TEL : 03-5927-9440
FAX : 03-5927-9441
WWW : http://www.clear-code.com/