Kouhei Sutou
null+****@clear*****
Thu Apr 12 10:47:13 JST 2018
Kouhei Sutou 2018-04-12 10:47:13 +0900 (Thu, 12 Apr 2018) New Revision: afc52b1fd6a9c2a14c3955060ced497a85bb4d55 https://github.com/groonga/grntest/commit/afc52b1fd6a9c2a14c3955060ced497a85bb4d55 Message: Force logging backtrace on crash Modified files: lib/grntest/executors/base-executor.rb Modified: lib/grntest/executors/base-executor.rb (+11 -1) =================================================================== --- lib/grntest/executors/base-executor.rb 2018-02-19 09:30:31 +0900 (0a9ebb3) +++ lib/grntest/executors/base-executor.rb 2018-04-12 10:47:13 +0900 (393b848) @@ -426,10 +426,20 @@ module Grntest def extract_important_messages(log) important_messages = [] parser = LogParser.new + in_crash = false parser.parse(log) do |entry| + if entry.log_level == "C" + case entry.message + when "-- CRASHED!!! --" + in_crash = true + when "----------------" + in_crash = false + end + end + next unless important_log_level?(entry.log_level) if****@conte*****_backtrace? - next if backtrace_log_message?(entry.message) + next if !in_crash and backtrace_log_message?(entry.message) end next if thread_log_message?(entry.message) important_messages << "\#|#{entry.log_level}| #{entry.message}" -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180412/436863ea/attachment.htm