Logger & debug level

greetings,

i am getting the below error message in my mongrel log and I want to
turn that 22 levels into a full trace. but i am unsure where or how
to configure the debug level for mongrel. any advice?

thanks - john

/usr/lib/ruby/gems/1.8/gems/ruby-debug-0.9.3/cli/ruby-debug/
interface.rb:24:in `join’: can’t convert nil into String (TypeError)

     from /usr/lib/ruby/gems/1.8/gems/ruby-debug-0.9.3/cli/ruby-

debug/interface.rb:24
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:inrequire’
from /var/www/foo/live/vendor/rails/activerecord/lib/…/…/
activesupport/lib/active_support/dependencies.rb:496:in require' from /var/www/foo/live/vendor/rails/activerecord/lib/../../ activesupport/lib/active_support/dependencies.rb:342:innew_constants_in’
from /var/www/foo/live/vendor/rails/activerecord/lib/…/…/
activesupport/lib/active_support/dependencies.rb:496:in require' from /usr/lib/ruby/gems/1.8/gems/ruby-debug-0.9.3/cli/ruby- debug/processor.rb:1 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:ingem_original_require’
… 22 levels…
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/
command.rb:211:in run' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ mongrel_rails:243 from /usr/bin/mongrel_rails:16:inload’
from /usr/bin/mongrel_rails:16

-B

http://mongrel.rubyforge.org/docs/howto.html

~Wayne

Actually, the trace snip level is hard-compiled into Ruby. Find the
place where the traceback occurs, rescue the exception, and print out
e.traceback (or whatever it is) instead. Then you’ll see the whole
thing.

Evan

On Dec 12, 2007 11:53 AM, Evan W. [email protected] wrote:

Actually, the trace snip level is hard-compiled into Ruby. Find the
place where the traceback occurs, rescue the exception, and print out
e.traceback (or whatever it is) instead. Then you’ll see the whole
thing.

e.backtrace

The constants that determine length of truncated backtrace are
TRACE_HEAD and TRACE_TAIL, #defined in eval.c. Changing them to bigger
numbers and recompiling is another way to deal with this issue.


Alexey V.
CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com]
RubyWorks [http://rubyworks.thoughtworks.com]

cool, thanks guys

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs