I have been trying to figure out the right way to log a stack trace. I came across this link which states that logger.error $!, $!.backtrace is the way to go but that does not work for me log_error does. As per documentation I do not see how passing a second argument to the error method would work anyway because the ruby logger that rails uses only accepts a single argument.
Strangely (or maybe not) the second argument is accepted without any interpreter complaints. However anything that I pass to it is ignored.
Can anyone explain what I am missing? Any insight into what the second argument to error is for and what is eating it?