Added backtrace when logging errors