mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lib/logger.rb: use %N
* lib/logger.rb (format_datetime): use "%6N" to show microsecond. [Fix GH-704] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4f662fe74f
commit
51560a8737
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Aug 25 12:56:54 2014 Ivan Korunkov <ivankorunkov@ya.ru>
|
||||
|
||||
* lib/logger.rb (format_datetime): use "%6N" to show microsecond.
|
||||
[Fix GH-704]
|
||||
|
||||
Mon Aug 25 11:02:07 2014 Eric Wong <e@80x24.org>
|
||||
|
||||
* vm_core.h (rb_iseq_location_t): change first_lineno type to VALUE
|
||||
|
|
|
@ -511,7 +511,7 @@ private
|
|||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue