S
snacktime
If I catch an exception, is there a way to produce a backtrace that I
can log using something like logger?
can log using something like logger?
If I catch an exception, is there a way to produce a backtrace that I
can log using something like logger?
If I catch an exception, is there a way to produce a backtrace that I
can log using something like logger?
rescue Exception => e
logger.error "#{ e.message } - (#{ e.class })" << "\n" <<
(e.backtrace or []).join("\n")
end
That is what I use to get a decent looking backtrace
-Ezra
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.