[Groonga-commit] groonga/groonga-query-log at 7012204 [master] Improve the accuracy of time so as to become the same accuracy as Groonga

アーカイブの一覧に戻る
Yasuhiro Horimoto null+****@clear*****
Tue Nov 6 12:04:33 JST 2018


Yasuhiro Horimoto	2018-11-06 12:04:33 +0900 (Tue, 06 Nov 2018)

  Revision: 701220475558c03cf7b6b019da4f77500ae898de
  https://github.com/groonga/groonga-query-log/commit/701220475558c03cf7b6b019da4f77500ae898de

  Merged 18f658a: Merge pull request #33 from komainu8/improve_accuracy_of_time

  Message:
    Improve the accuracy of time so as to become the same accuracy as Groonga

  Modified files:
    lib/groonga-query-log/memory-leak-detector.rb
    lib/groonga-query-log/replayer.rb
    lib/groonga-query-log/server-verifier.rb

  Modified: lib/groonga-query-log/memory-leak-detector.rb (+1 -1)
===================================================================
--- lib/groonga-query-log/memory-leak-detector.rb    2018-11-06 11:07:36 +0900 (60c7a6c)
+++ lib/groonga-query-log/memory-leak-detector.rb    2018-11-06 12:04:33 +0900 (4bc691d)
@@ -33,7 +33,7 @@ module GroongaQueryLog
               check_command(client, command)
             rescue Groonga::Client::Connection::Error
               # TODO: add error log mechanism
-              $stderr.puts(Time.now.iso8601)
+              $stderr.puts(Time.now.iso8601(6))
               $stderr.puts(command.original_source)
               $stderr.puts($!.raw_error.message)
               $stderr.puts($!.raw_error.backtrace)

  Modified: lib/groonga-query-log/replayer.rb (+2 -2)
===================================================================
--- lib/groonga-query-log/replayer.rb    2018-11-06 11:07:36 +0900 (2bd989f)
+++ lib/groonga-query-log/replayer.rb    2018-11-06 12:04:33 +0900 (f22890f)
@@ -81,14 +81,14 @@ module GroongaQueryLog
               replay_command(client, id, statistic.command)
             rescue Groonga::Client::Error
               # TODO: add error log mechanism
-              $stderr.puts(Time.now.iso8601)
+              $stderr.puts(Time.now.iso8601(6))
               $stderr.puts(statistic.command.original_source)
               $stderr.puts($!.raw_error.message)
               $stderr.puts($!.raw_error.backtrace)
               return false
             rescue
               # TODO: add error log mechanism
-              $stderr.puts(Time.now.iso8601)
+              $stderr.puts(Time.now.iso8601(6))
               $stderr.puts(statistic.command.original_source)
               $stderr.puts($!.message)
               $stderr.puts($!.backtrace)

  Modified: lib/groonga-query-log/server-verifier.rb (+1 -1)
===================================================================
--- lib/groonga-query-log/server-verifier.rb    2018-11-06 11:07:36 +0900 (9944418)
+++ lib/groonga-query-log/server-verifier.rb    2018-11-06 12:04:33 +0900 (5cbb6c8)
@@ -177,7 +177,7 @@ module GroongaQueryLog
     end
 
     def log_client_error(error)
-      $stderr.puts(Time.now.iso8601)
+      $stderr.puts(Time.now.iso8601(6))
       yield if block_given?
       if error.respond_to?(:raw_error)
         target_error = error.raw_error
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181106/7d9e1f4b/attachment-0001.html>


More information about the Groonga-commit mailing list
アーカイブの一覧に戻る