[Groonga-commit] groonga/groonga-log at 244dc89 [master] Ensure removing newlines

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jan 15 15:14:45 JST 2018


Kouhei Sutou	2018-01-15 15:14:45 +0900 (Mon, 15 Jan 2018)

  New Revision: 244dc89894c9261aec3a7e97b845630bc532592d
  https://github.com/groonga/groonga-log/commit/244dc89894c9261aec3a7e97b845630bc532592d

  Message:
    Ensure removing newlines

  Modified files:
    lib/groonga-log/parser.rb

  Modified: lib/groonga-log/parser.rb (+1 -1)
===================================================================
--- lib/groonga-log/parser.rb    2018-01-15 15:10:46 +0900 (c92063a)
+++ lib/groonga-log/parser.rb    2018-01-15 15:14:45 +0900 (c004ceb)
@@ -26,7 +26,7 @@ module GroongaLog
           \ (?<hour>\d\d):(?<minute>\d\d):(?<second>\d\d)\.(?<micro_second>\d+)
           \|(?<log_level>.)
           \|(?:(?<pid>\d+):)?
-          \ (?<message>.*)/x
+          \ (?<message>[^\r\n]*)/x
     PATH_TIMESTAMP_PATTERN = /(\d{4})-(\d{2})-(\d{2})-
                               (\d{2})-(\d{2})-(\d{2})-(\d{6})\z/x
 
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180115/6f84c1f7/attachment.htm 



More information about the Groonga-commit mailing list
Back to archive index