Forum: Ruby on Rails peculiar behavior of logger.rb under Rails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D4d28bd014f9e7324bad99dcc3b0d390?d=identicon&s=25 Rich Morin (Guest)
on 2007-01-31 19:39
(Received via mailing list)
I am using logger to record method calls in a Rails app.  It
is used in the context of some "set_trace_func proc" code,
which is invoked at the start of ".../public/dispatch.fcgi".

As the app runs, a log of all method calls is generated.
However, at line 5463 in the log, the line prefixes go away:

  I, [09:44:43#26539]  INFO -- : call   8  Object:method_added ...
  I, [09:44:43#26539]  INFO -- : call   8  Object:method_added ...
  call   8  Object:method_added   ... (P07/blankslate.rb:57)
  call   7  Kernel:require        ... (P04/custom_require.rb:26)

The prefixes do not reappear in the remainder of the (26979 line)
log.  To eliminate the possibility that logger gets confused at a
given number of output lines, I wrote a simple test script:

  #!/usr/bin/env ruby

  require '/usr/local/lib/ruby/site_ruby/1.8/boswell.rb''/tmp/rdm/TST')

  def foo

  50000.times do

However, this did not reproduce the problem.  So, I assume that
there is some untoward interaction going on with the Rails code.
Can anyone suggest a way of tracking this down?

--            Rich Morin     +1 650-873-7841

Technical editing and writing, programming, and web development
This topic is locked and can not be replied to.