ruby-changes:35189
From: nobu <ko1@a...>
Date: Mon, 25 Aug 2014 12:57:00 +0900 (JST)
Subject: [ruby-changes:35189] nobu:r47271 (trunk): lib/logger.rb: use %N
nobu 2014-08-25 12:56:53 +0900 (Mon, 25 Aug 2014) New Revision: 47271 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47271 Log: lib/logger.rb: use %N * lib/logger.rb (format_datetime): use "%6N" to show microsecond. [Fix GH-704] Modified files: trunk/ChangeLog trunk/lib/logger.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 47270) +++ ChangeLog (revision 47271) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Aug 25 12:56:54 2014 Ivan Korunkov <ivankorunkov@y...> + + * lib/logger.rb (format_datetime): use "%6N" to show microsecond. + [Fix GH-704] + Mon Aug 25 11:02:07 2014 Eric Wong <e@8...> * vm_core.h (rb_iseq_location_t): change first_lineno type to VALUE Index: lib/logger.rb =================================================================== --- lib/logger.rb (revision 47270) +++ lib/logger.rb (revision 47271) @@ -511,7 +511,7 @@ private https://github.com/ruby/ruby/blob/trunk/lib/logger.rb#L511 def format_datetime(time) if @datetime_format.nil? - time.strftime("%Y-%m-%dT%H:%M:%S.") << "%06d " % time.usec + time.strftime("%Y-%m-%dT%H:%M:%S.%6N ") else time.strftime(@datetime_format) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/